Submission #108548

# Submission time Handle Problem Language Result Execution time Memory
108548 2019-04-30T07:51:29 Z tictaccat Wombats (IOI13_wombats) C++14
0 / 100
34 ms 32632 KB
#include "wombats.h"
#include <bits/stdc++.h>

using namespace std;

int sum;
vector<vector<int>> H(5000,vector<int>(200)), V(5000,vector<int>(200)); 

void init(int R, int C, int H[5000][200], int V[5000][200]) {
    /* ... */
    for (int i = 0; i < R-1; i++) {
        sum += V[i][0];
    }
}

void changeH(int P, int Q, int W) {
    /* ... */
}

void changeV(int P, int Q, int W) {
    /* ... */
    sum -= V[P][0];
    sum += W;
    V[P][0] = W;
}

int escape(int V1, int V2) {
    assert(V1 == 0 && V2 == 0);
    return sum;
}

Compilation message

grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
  int res;
      ^~~
# Verdict Execution time Memory Grader output
1 Correct 16 ms 12416 KB Output is correct
2 Incorrect 15 ms 12416 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 8 ms 8576 KB Output is correct
2 Correct 10 ms 8576 KB Output is correct
3 Correct 12 ms 8576 KB Output is correct
4 Runtime error 20 ms 17024 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 23 ms 17280 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 34 ms 32632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 22 ms 17272 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 21 ms 17252 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -