Submission #203287

#TimeUsernameProblemLanguageResultExecution timeMemory
203287sean617Meetings (JOI19_meetings)C++14
17 / 100
3082 ms508 KiB
#include "meetings.h" void Solve(int N) { int i, j, k; int x, pr; for (i = 0; i < N; i++) { for (j = i + 1; j < N; j++) { pr = -1; for (k = 0; k < N; k++) { if (k == i || k == j) continue; x = Query(i, j, k); if ((x != i && x != j)) break; pr = x; } if (k == N) Bridge(i, j); } } }

Compilation message (stderr)

meetings.cpp: In function 'void Solve(int)':
meetings.cpp:5:10: warning: variable 'pr' set but not used [-Wunused-but-set-variable]
   int x, pr;
          ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...