火力点快支撑不住了

B2043 判断能否被 3,5,7 整除

@[sajdhaksjdh](/user/1436619) ``` #include<iostream> #include<cstdio> using namespace std; int main() { int x; cin>>x; if(x%105==0) cout<<3<<" "<<5<<" "<<7; else if(x%15==0) cout<<3<<" "<<5; else if(x%21==0) cout<<3<<" "<<7; else if(x%35==0) cout<<5<<" "<<7; else if(x%3==0) cout<<3; else if(x%5==0) cout<<5; else if(x%7==0) cout<<7; else cout<<'n'; } ``` 求关注
by hanxiaofensheng @ 2024-09-06 22:29:56


小日子被打败了哈哈哈此贴完结
by sajdhaksjdh @ 2024-09-07 10:59:48


上一页 |