Problem 1002 ÖÕÖ¹×Ö·ûÊÇʲô

zhong015 | 2015-05-21 13:34:36Author
#include <stdio.h> int main(int argc, const char * argv[]) { int a; int b; int an; while (1) { scanf("%d",&a); scanf("%d",&b); an=b%a; if (an==0) { an=a-1; } else { an--; } printf("%d",an); } return 0; }
usefortmp | 2015-05-21 16:11:50# 1
while(scanf("%d %d",&a,&b)!=EOF)