Submission #46935

#TimeUsernameProblemLanguageResultExecution timeMemory
46935model_codeSoccer (JOI17_soccer)C++17
0 / 100
2 ms488 KiB
#include <cstdio> int main() { const int n = 10; int a[n] = {16,12,17,48,89,21,97,59,30,16}; int i, j, t, res=0; for (i = 0; i < n; i++){ for (j = i + 1; j < n; j++){ if (a[i] > a[j]){ t = a[i]; a[i] = a[j]; a[j] = t; } } } printf ("%d\n",a[2]); }

Compilation message (stderr)

soccer.cpp: In function 'int main()':
soccer.cpp:5:14: warning: unused variable 'res' [-Wunused-variable]
 int i, j, t, res=0;
              ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...