Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54930 | zhangweiran | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 236 KB | 197 | 2024-11-01 15:03:08 |
#include<iostream> using namespace std; int main() { int x,p; cin>>x; p=x%15; if (p==0){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }