Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51591 | 张思存 | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 244 KB | 192 | 2024-09-22 21:29:56 |
#include<bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if(a-(a/15)*15==0){ cout<<"YES"; }else{ cout <<"NO"; } return 0; }