답안 #1067814

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1067814 2024-08-21T03:50:54 Z 12345678 웜뱃 (IOI13_wombats) C++17
9 / 100
38 ms 8284 KB
#include "wombats.h"
#include <bits/stdc++.h>

using namespace std;

const int nx=5e3+5;

int sm, dist[nx];

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

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

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

int escape(int V1, int V2) {
    return sm;
}

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;
      |      ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 4184 KB Output is correct
2 Correct 2 ms 4184 KB Output is correct
3 Correct 38 ms 6996 KB Output is correct
4 Correct 2 ms 4188 KB Output is correct
5 Correct 2 ms 4188 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 444 KB Output is correct
4 Incorrect 0 ms 348 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 604 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 8284 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 604 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 564 KB Output isn't correct
2 Halted 0 ms 0 KB -