5 solutions
- 1
Information
- ID
- 533
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 56
- Accepted
- 41
- Uploaded By
#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin >> n;
if(n % 3 == 0 && n % 5 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
// cout << fixed << setprecision(2) << pj << endl;
return 0;
}
//21
water problem
#include <bits/stdc++.h>
using namespace std;
int a;
int main(){
cin>>a;
if(a%3==0&&a%5==0) cout<<"YES";
else cout<<"NO";
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
if(a%3==0&&a%5==0)cout<<"YES";
else cout<<"NO";
}//Water,do you know?
using namespace std;
int main()
{
int a;
cin>>a;
if(a%3==0&&a%5==0)cout<<"YES";
else cout<<"NO";
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.