| 比赛 | 初一开训小练习 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 01数字 | 最终得分 | 100 |
| 用户昵称 | 贺元莘 | 运行时间 | 0.027 s |
| 代码语言 | C++ | 内存使用 | 3.73 MiB |
| 提交时间 | 2026-03-10 19:19:33 | ||
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("torch.in","r",stdin);
freopen("torch.out","w",stdout);
long long n,m,k;
bool a=true;
cin >> n;
for(int i=1;i<=30000;i++){
k=i*n;
a=true;
while(true){
if(k%10==1 or k%10==0){
if(k/10<=1){
break;
}
k/=10;
}else{
a=false;
break;
}
}
if(a){
cout << i ;
return 0;
}
}
cout << "NO";
return 0;
}