Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38520 | 奚晨瑞 | 判断一个数能否同时被3和5整除 | C++ | Accepted | 0 MS | 252 KB | 186 | 2024-01-27 16:12:51 |
#include<iostream> using namespace std; int main() { int n; cin>>n; bool a; a=((n%3==0)&&(n%5==0)); if(a=1){ cout<<"YES"; } if(a=0){ cout<<"NO"; } return 0; }