# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
26952 | sgc109 | 보물 찾기 (CEOI13_treasure2) | C++11 | 0 ms | 1268 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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);
}
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |