Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
18392 dulingxi 判断能否被3,5,7整除 C++ Accepted 0 MS 252 KB 252 2023-05-27 11:59:26

Tests(1/1):


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


Judgement Protocol: