#include <bits/stdc++.h>
#define MAXN 100007
using namespace std;
long long n,m,k;
vector<int> v;
int main(){
cin>>n>>m>>k;
if((n*m)%6==0 and (n>1 and m>1)){
cout<<"YES\n";
}else{
for(int i=1;i<=10000000;i++){
v.push_back(i);
}
cout<<"NO\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
59 ms |
66192 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
59 ms |
66212 KB |
Output is correct |
2 |
Correct |
56 ms |
66160 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Incorrect |
56 ms |
66184 KB |
Output isn't correct |
7 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
56 ms |
66196 KB |
Output is correct |
4 |
Incorrect |
56 ms |
66132 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
71 ms |
66224 KB |
Output is correct |
2 |
Incorrect |
56 ms |
66164 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
64 ms |
66160 KB |
Output is correct |
2 |
Incorrect |
53 ms |
66192 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
59 ms |
66192 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |