mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
25 lines
429 B
C++
25 lines
429 B
C++
|
#include <iostream>
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
int k,a;
|
||
|
while(cin>>k)
|
||
|
{
|
||
|
if(k%65==0)
|
||
|
{
|
||
|
cout<<"no"<<endl;
|
||
|
continue;
|
||
|
}
|
||
|
for(a=0;a<65;++a)
|
||
|
{
|
||
|
if((a*k)%65==47)
|
||
|
{
|
||
|
cout << a << endl;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
if(a==65) cout << "no" <<endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|