Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
334332 | 李俞家骅 | 【C1-12】判断能否被3,5,7整除 | C++ | 解答错误 | 33 | 2 MS | 248 KB | 248 | 2025-07-18 09:23:44 |
#include<bits/stdc++.h> 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"; return 0; }