题目链接
http://acm.hdu.edu.cn/showproblem.php?pid=1098
#include<stdio.h>
int main(void)
{
int n,i;
int a;
while(scanf("%d",&n)!=EOF)
{
for(a=0;a<=65;a++)//由于x取1,a的范围为0~65
{
//找规律 (65为周期)
if((18+a*n)%65==0)
{
printf("%d\n",a);
break;
}
}
if(a>=66)
printf("no\n");
}
return 0;
}