Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
69086 sh25_ganzy 判断能否被3,5,7整除 C++ 编译错误 0 MS 0 KB 359 2025-10-10 18:16:06

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; bool b3=0,b5=0,b7=0; if(n%3==0){ b3=1; cout<<3<<" "; } if(n%5==0){ b5=1; cout<<5<<" "; } if(n%7==0){ b7=1; cout<<7<<; } if(b3+b5+b7==0){ cout<<"n"; } return 0; }


测评信息: