# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
26952 | 2017-07-07T12:07:46 Z | sgc109 | 보물 찾기 (CEOI13_treasure2) | C++11 | 0 ms | 1268 KB |
#include "treasure.h" int dp[103][103]; int exist[103][103]; void findTreasure (int N) { for(int i = 1; i <= N; i++){ for(int j = 1 ; j <= N; j++){ int cnt = countTreasure(1, 1, i, j); int know = dp[i-1][j] + dp[i][j-1] - dp[i-1][j-1]; if(cnt != know) exist[i][j] = 1; dp[i][j] = cnt; } } for(int i = 1; i <= N; i++){ for(int j = 1; j <= N; j++){ if(exist[i][j]) Report(i, j); } } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 5, K = 425, score = 8 |
2 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 10, K = 7075, score = 4 |
3 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 15, K = 36450, score = 4 |
4 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 16, K = 47296, score = 4 |
5 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 55, K = 6782050, score = 4 |
6 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 66, K = 14090571, score = 4 |
7 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 77, K = 26140961, score = 4 |
8 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 88, K = 44642224, score = 4 |
9 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 99, K = 71566902, score = 4 |
10 | Partially correct | 0 ms | 1268 KB | Output is partially correct - N = 100, K = 74507500, score = 4 |