Submission #381363

#TimeUsernameProblemLanguageResultExecution timeMemory
381363asqarKošnja (COCI17_kosnja)C++14
25 / 50
139 ms1004 KiB
#include <bits/stdc++.h> using namespace std; main () { int n; cin >> n; int a[ 50001], b[50001]; for (int i = 1; i <= n; i ++) { cin >> a[i] >> b[i]; cout << (min (a[i], b[i]) - 1) * 2; } }

Compilation message (stderr)

kosnja.cpp:3:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main ()
      |       ^
#Verdict Execution timeMemoryGrader output
Fetching results...