Submission #785887

# Submission time Handle Problem Language Result Execution time Memory
785887 2023-07-17T17:53:51 Z drdilyor Wombats (IOI13_wombats) C++17
9 / 100
56 ms 8124 KB
#include<bits/stdc++.h>
#include "wombats.h"
using namespace std;

int sum = 0;
vector<int> arr;

void init(int r, int c, int h[5000][200], int v[5000][200]) {
    arr.resize(r-1);
    for (int i = 0; i < r-1; i++) {
        arr[i] = v[i][0];
        sum += arr[i];
    }
}

void changeH(int p, int q, int w) {
    /* ... */
}

void changeV(int p, int q, int w) {
    sum -= arr[p];
    arr[p] = w;
    sum += arr[p];
}

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]
   15 |  int res;
      |      ^~~
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4180 KB Output is correct
2 Correct 2 ms 4180 KB Output is correct
3 Correct 56 ms 6952 KB Output is correct
4 Correct 2 ms 4180 KB Output is correct
5 Correct 3 ms 4180 KB Output is correct
6 Correct 1 ms 308 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 312 KB Output is correct
4 Incorrect 1 ms 340 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 552 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 8124 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 468 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 444 KB Output isn't correct
2 Halted 0 ms 0 KB -