Submission #585194

# Submission time Handle Problem Language Result Execution time Memory
585194 2022-06-28T12:18:41 Z Dan4Life Wombats (IOI13_wombats) C++17
0 / 100
7 ms 8368 KB
#include "wombats.h"
#include <bits/stdc++.h>
using namespace std;
int x[205];

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

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

void changeV(int P, int Q, int W) {
    x[P+1]=W;
}

int escape(int V1, int V2) {
    int ans = 0;
    for(int i = V1+1; i <= V2; i++) ans+=x[i];
    return ans;
}

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 2 ms 4180 KB Output is correct
2 Runtime error 7 ms 8368 KB Execution killed with signal 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 468 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 8020 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 468 KB Output isn't correct
2 Halted 0 ms 0 KB -