hdu1098

#include <stdio.h>

int main() {

int k, a, i, flag;
while(~scanf("%d", &k)) {
for(i=0; i<66; i++) {
if((18+k*i)%65==0)
break;
}
if(i<66)
printf("%d ", i);
else
printf("no ");
}

return 0;
}

原文地址:https://www.cnblogs.com/wangkun1993/p/6348081.html