| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1150170 | eri16 | L-triominoes (CEOI21_ltriominoes) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int w,h,k;
cin>>w>>h>>k;
if ((h%6)*(w%6)%6==0){cout<<"NO";}
else{
if (w%3!=0 && h%3==0){
cout<<"YES";
}
else if (w%3==0 && h%3!=0){
cout<<"YES";
}
else if (w%6==0 && h%3==0){
cout<<"YES";
}
else if (w%3==0 && h%6==0){
cout<<"YES";
}
else{cout<<"NO";}
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
