Submission #985633

# Submission time Handle Problem Language Result Execution time Memory
985633 2024-05-18T11:24:22 Z AliHasanli Topical (NOI23_topical) C++17
12 / 100
433 ms 20000 KB
#include <iostream>
using namespace std;
int main()
{
    int n,k;
    cin>>n>>k;
    int r[n][k],u[n][k];
    for(int i=0;i<n;i++)
        for(int j=0;j<k;j++)
            cin>>r[i][j];
    for(int i=0;i<n;i++)
        for(int j=0;j<k;j++)
            cin>>u[i][j];
    int ans=0;
    for(int i=0;i<k;i++)
        if(r[0][i]>0)
            cout<<0,exit(0);
    cout<<1;
    return 0;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:14:9: warning: unused variable 'ans' [-Wunused-variable]
   14 |     int ans=0;
      |         ^~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 6 ms 444 KB Output is correct
4 Correct 414 ms 19792 KB Output is correct
5 Correct 415 ms 20000 KB Output is correct
6 Correct 433 ms 19796 KB Output is correct
7 Correct 257 ms 13988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 588 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 436 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 6 ms 444 KB Output is correct
4 Correct 414 ms 19792 KB Output is correct
5 Correct 415 ms 20000 KB Output is correct
6 Correct 433 ms 19796 KB Output is correct
7 Correct 257 ms 13988 KB Output is correct
8 Correct 1 ms 588 KB Output is correct
9 Incorrect 0 ms 348 KB Output isn't correct
10 Halted 0 ms 0 KB -