Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20794 | LeoWang | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 248 KB | 169 | 2023-06-20 08:50:13 |
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n%3==0 && n%5==0){ cout << "YES"; } else{ cout<<"NO"; } return 0; }