답안 #64401

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
64401 2018-08-04T09:56:53 Z theknife2001 웜뱃 (IOI13_wombats) C++17
9 / 100
137 ms 9736 KB
#include <bits/stdc++.h>
#include "wombats.h"

using namespace std;
const int N=5e3+55;
int sum[N][2];
int v[N][2];
int n,m;

void init(int R, int C, int H[5000][200], int V[5000][200])
{
    n=R;
    m=C;
    for(int i=0;i<n;i++)
        for(int j=0;j<m;j++)
            v[i][j]=V[i][j];
    for(int i=1;i<n;i++)
        sum[i][0]=V[i-1][0]+sum[i-1][0];

}

void changeH(int P, int Q, int W)
{

}

void changeV(int P, int Q, int W)
{
    sum[n-1][0]+=W-v[P][Q];
    v[P][Q]=W;

}

int escape(int V1, int V2)
{
    return sum[n-1][0];
}

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;
      ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 4216 KB Output is correct
2 Correct 7 ms 4324 KB Output is correct
3 Correct 137 ms 7176 KB Output is correct
4 Correct 7 ms 7176 KB Output is correct
5 Correct 7 ms 7176 KB Output is correct
6 Correct 3 ms 7176 KB Output is correct
7 Correct 2 ms 7176 KB Output is correct
8 Correct 3 ms 7176 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 7176 KB Output is correct
2 Correct 2 ms 7176 KB Output is correct
3 Correct 3 ms 7176 KB Output is correct
4 Incorrect 4 ms 7176 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 7176 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 14 ms 9736 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 6 ms 9736 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 9736 KB Output isn't correct
2 Halted 0 ms 0 KB -