题解 | 被5整除问题
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to if(a%5==0) printf("YES\n"); else printf("NO\n"); return 0; } return 0; }
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to if(a%5==0) printf("YES\n"); else printf("NO\n"); return 0; } return 0; }
相关推荐