Submission #585198

# Submission time Handle Problem Language Result Execution time Memory
585198 2022-06-28T12:22:57 Z Dan4Life Wombats (IOI13_wombats) C++17
0 / 100
5 ms 8112 KB
#include "wombats.h"
#include <bits/stdc++.h>
using namespace std;
int x[5500];

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

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 3 ms 4180 KB Output is correct
2 Incorrect 3 ms 4180 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 456 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 8112 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 -