| 比赛 | 初一开训小练习 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 01数字 | 最终得分 | 100 |
| 用户昵称 | 未登录用户 | 运行时间 | 0.028 s |
| 代码语言 | C++ | 内存使用 | 3.68 MiB |
| 提交时间 | 2026-03-10 19:59:37 | ||
#include <bits/stdc++.h>
using namespace std;
int main (){
freopen("torch.in","r",stdin);
freopen("torch.out","w",stdout);
int b;
int c;
bool ab=0;
int N;
cin >>N;
for (int M=1;M<=30000;M++){
b=N*M;
c=b;
while (b){
if(b%10==0||b%10==1){
b/=10;
ab=0;
//cout <<"ad";
}else{ab=1;break;}
}
if (ab==0){
cout<<M;
return 0;
}else {
ab=0;
}
}
cout <<"NO";
return 0;
}