Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
359239 admin_rjp 【C1-12】判断能否被3,5,7整除 C++ 通过 100 3 MS 260 KB 289 2025-11-01 15:52:50

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; }


测评信息: