Submission #71521

#TimeUsernameProblemLanguageResultExecution timeMemory
71521admin행성 탐사 (GA8_planet)C++17
71 / 100
1267 ms1396 KiB
#include "planet.h" #define N 2222 void ainta() { int i; for(i = 0; i < 200; i++) paint(i, i); } void sangsoo() { int r, c, g, k, t = 0, cnt = 0; for(c = 0, g = 1; ; c = (c + ++g) % N, ++t, ++cnt) { if(count_col(c) != 0) break; } for(k = 6; k >= 0; k--, ++t, ++cnt) { c = (c - (1<<k) + N) % N; if(!count_col(c)) c = (c + (1<<k) + N) % N; } for(r = 0, g = 1; ; r = (r + t + ++g) % N, ++cnt) { if(count_row(r) != 0) break; } for(k = 6; k >= 0; k--, ++cnt) { r = (r - (1<<k) + N) % N; if(!count_row(r)) r = (r + (1<<k) + N) % N; } report(r, c); }

Compilation message (stderr)

grader.c: In function 'void count_increment(const char*)':
grader.c:74:103: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
   printf("Incorrect\ncount_%s()를 %d회보다 많이 호출했습니다.\n", limit_count_calls,  func);
                                                                                                       ^
grader.c:74:103: warning: format '%d' expects argument of type 'int', but argument 3 has type 'const char*' [-Wformat=]
grader.c: In function 'int main()':
grader.c:146:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &seed, &range);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...