Submission #1097549

# Submission time Handle Problem Language Result Execution time Memory
1097549 2024-10-07T14:45:56 Z alexander707070 L-triominoes (CEOI21_ltriominoes) C++14
0 / 100
95 ms 80116 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==7)cout<<1/0;
        cout<<"NO\n";
    }

    return 0;
}

Compilation message

ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:20:24: warning: division by zero [-Wdiv-by-zero]
   20 |         if(n==7)cout<<1/0;
      |                       ~^~
# Verdict Execution time Memory Grader output
1 Incorrect 58 ms 66020 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 95 ms 80116 KB Execution killed with signal 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 51 ms 66052 KB Output is correct
4 Incorrect 55 ms 66064 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 53 ms 66028 KB Output is correct
2 Incorrect 53 ms 66224 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 91 ms 79916 KB Execution killed with signal 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 58 ms 66020 KB Output isn't correct
2 Halted 0 ms 0 KB -