답안 #1097533

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1097533 2024-10-07T14:40:22 Z alexander707070 L-triominoes (CEOI21_ltriominoes) C++14
0 / 100
1 ms 600 KB
#include <bits/stdc++.h>
#define MAXN 100007
using namespace std;

long long n,m,k;

int main(){

    cin>>n>>m>>k;

    if((n*m)%6==0 and (n>1 and m>1)){
        cout<<"YES\n";
    }else{
        if((n*m)%3==0)cout<<1/0;
        
        cout<<"NO\n";
    }

    return 0;
}

Compilation message

ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:14:30: warning: division by zero [-Wdiv-by-zero]
   14 |         if((n*m)%3==0)cout<<1/0;
      |                             ~^~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Runtime error 1 ms 348 KB Execution killed with signal 4
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Incorrect 1 ms 348 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Incorrect 0 ms 344 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 600 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -