Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
364514 蒙可馨 【C1-12】判断能否被3,5,7整除 C++ 通过 100 5 MS 248 KB 214 2025-11-29 13:16:15

Tests(3/3):


#include<iostream> using namespace std; int main (){ int x; cin>>x; if(x%3==0) cout<<"3 "; if(x%5==0) cout<<"5 "; if(x%7==0) cout<<"7"; if(x%3!=0&&x%5!=0&&x%7!=0) cout<<'n'; return 0; }


测评信息: