Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
69087 sh25_ganzy 判断能否被3,5,7整除 C++ 通过 0 MS 256 KB 357 2025-10-10 18:16:35

Tests(1/1):


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


测评信息: