답안 #7027

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7027 2014-07-12T16:09:34 Z gs13068 보물 찾기 (CEOI13_treasure2) C++
44 / 100
0 ms 1224 KB
#include "treasure.h"

int a[101][101];

void findTreasure(int N)
{
  int i,j;
  for(i=1;i<=N;i++)for(j=1;j<=N;j++)a[i][j]=countTreasure(1,1,i,j);
  for(i=1;i<=N;i++)for(j=1;j<=N;j++)if(a[i][j]-a[i-1][j]-a[i][j-1]+a[i-1][j-1])Report(i,j);
}

Compilation message

grader.c: In function 'int main()':
grader.c:63:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         my_assert(strlen(A[i]+1) == N, "each line of the map must contain N zeroes or ones (before loop)");
                                  ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1224 KB Output is partially correct - N = 5, K = 425, score = 8
2 Incorrect 0 ms 1224 KB Output is partially correct - N = 10, K = 7075, score = 4
3 Incorrect 0 ms 1224 KB Output is partially correct - N = 15, K = 36450, score = 4
4 Incorrect 0 ms 1224 KB Output is partially correct - N = 16, K = 47296, score = 4
5 Incorrect 0 ms 1224 KB Output is partially correct - N = 55, K = 6782050, score = 4
6 Incorrect 0 ms 1224 KB Output is partially correct - N = 66, K = 14090571, score = 4
7 Incorrect 0 ms 1224 KB Output is partially correct - N = 77, K = 26140961, score = 4
8 Incorrect 0 ms 1224 KB Output is partially correct - N = 88, K = 44642224, score = 4
9 Incorrect 0 ms 1224 KB Output is partially correct - N = 99, K = 71566902, score = 4
10 Incorrect 0 ms 1224 KB Output is partially correct - N = 100, K = 74507500, score = 4