Submission #42275

#TimeUsernameProblemLanguageResultExecution timeMemory
42275rlqja2222Treasure (different grader from official contest) (CEOI13_treasure2)C++14
3 / 100
2 ms832 KiB
#include "treasure.h" #include <cstdio> int row[100]; int col[100]; void findTreasure(int N) { int n = 0; for (int r = 1; r <= N; r++) { for (int c = 1; c <= N; c++) { int t = countTreasure(r, c, r, c); if (t) row[n] = r, col[n] = c, n++; } } while (--n >= 0) Report(row[n], col[n]); }

Compilation message (stderr)

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)");
                                  ^
#Verdict Execution timeMemoryGrader output
Fetching results...