Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56031 | 王一涵(吃土豆长大的马铃薯) | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 244 KB | 226 | 2024-11-08 19:59:26 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%3==0){ if(a%5==0){ cout<<"YES"; } else{cout<<"NO"; } } else{cout<<"NO"; } return 0; }