Submission #1016466

# Submission time Handle Problem Language Result Execution time Memory
1016466 2024-07-08T06:19:26 Z Salty Topical (NOI23_topical) C++14
12 / 100
384 ms 23684 KB
#include<bits/stdc++.h>
#define ll long long 
#define pii pair<vector<int>,int>
using namespace std;
int main(){
    int n,k;
    cin >> n >> k;
    vector<vector<int>> u(n,vector<int>(k)),r(n,vector<int>(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];
    vector<int> cur (k,0);
    int ans = 0;
    //sub1 
    for(int i = 0; i < k; i++) if(r[0][i] > 0){ cout << 0; return 0;}
    cout << 1;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:12:9: warning: unused variable 'ans' [-Wunused-variable]
   12 |     int ans = 0;
      |         ^~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 604 KB Output is correct
4 Correct 306 ms 23684 KB Output is correct
5 Correct 319 ms 23684 KB Output is correct
6 Correct 384 ms 23564 KB Output is correct
7 Correct 194 ms 17792 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 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 348 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 604 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 604 KB Output is correct
4 Correct 306 ms 23684 KB Output is correct
5 Correct 319 ms 23684 KB Output is correct
6 Correct 384 ms 23564 KB Output is correct
7 Correct 194 ms 17792 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Incorrect 0 ms 348 KB Output isn't correct
10 Halted 0 ms 0 KB -