Submission #108547

# Submission time Handle Problem Language Result Execution time Memory
108547 2019-04-30T07:47:27 Z tictaccat Wombats (IOI13_wombats) C++14
0 / 100
21 ms 16376 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) {
    /* ... */
    sum -= V[P][0];
    sum += W;
    V[P][0] = W;
}

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

int escape(int V1, int V2) {
    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 13 ms 12416 KB Output is correct
2 Incorrect 14 ms 12416 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 10 ms 8576 KB Output is correct
2 Correct 10 ms 8496 KB Output is correct
3 Correct 11 ms 8576 KB Output is correct
4 Incorrect 10 ms 8576 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 14 ms 8704 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 16376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 8960 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 8804 KB Output isn't correct
2 Halted 0 ms 0 KB -