11 条题解
-
-1
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%30 and a%50 and a%70){ cout<<"3"<<" "<<"5"<<" "<<"7"; } if(a%30 and a%50){ cout<<"3"<<" "<<"5"; } if(a%30 and a%70){ cout<<"3"<<" "<<"7"; } if(a%50 and a%70){ cout<<"5"<<" "<<"7"; } if(a%30 and a%5!=0 and a%7!=0){ cout<<"3"; } if(a%3!=0 and a%50 and a%7!=0){ cout<<"5"; } if(a%3!=0 and a%5!=0 and a%70){ cout<<"7"; } if(a%3!=0 and a%5!=0 and a%7!=0){ cout<<'n'; } return 0; }
- 1
信息
- ID
- 2134
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 2
- 标签
- 递交数
- 213
- 已通过
- 129
- 上传者