답안 #1097545

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1097545 2024-10-07T14:44:49 Z alexander707070 L-triominoes (CEOI21_ltriominoes) C++14
0 / 100
59 ms 66444 KB
#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)swap(n,m);

    if((n*m)%6==0){
        cout<<"YES\n";
    }else{
        for(int i=1;i<=10000000;i++){
            v.push_back(i);
        }

        if(n==5 and m==9)cout<<1/0;
        cout<<"NO\n";
    }

    return 0;
}

Compilation message

ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:20:33: warning: division by zero [-Wdiv-by-zero]
   20 |         if(n==5 and m==9)cout<<1/0;
      |                                ~^~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 56 ms 66164 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 66164 KB Output is correct
2 Correct 57 ms 66144 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Incorrect 55 ms 66444 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
3 Correct 56 ms 66032 KB Output is correct
4 Incorrect 57 ms 66148 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 57 ms 66292 KB Output is correct
2 Incorrect 55 ms 66196 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 59 ms 66192 KB Output is correct
2 Incorrect 56 ms 66196 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 56 ms 66164 KB Output isn't correct
2 Halted 0 ms 0 KB -