Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
34357 | sunhuifeng | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 244 KB | 187 | 2023-12-19 21:17:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(3*5%n==0){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }