#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); // 64 位输出请用 printf("%lld") to printf("%d\n", a%b); return 0; }