| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 77730 | sh25_shengmy | 判断能否被3,5,7整除 | C++ | Accepted | 0 MS | 248 KB | 596 | 2025-12-26 14:43:47 |
#include <bits/stdc++.h>; using namespace std; int main() { int a; cin >> a; if(a%3==0&&a%5==0&&a%7==0) { cout << "3 5 7"; } else if(a%3==0&&a%5==0) { cout << "3 5"; } else if(a%3==0&&a%7==0) { cout << "3 7"; } else if(a%7==0&&a%5==0) { cout << "5 7"; } else if(a%3==0) { cout << "3"; } else if(a%5==0) { cout << "5"; } else if(a%7==0) { cout << "7"; } else { cout << "n"; } return 0; }