Submission #381367

#TimeUsernameProblemLanguageResultExecution timeMemory
381367asqarKošnja (COCI17_kosnja)C++14
50 / 50
142 ms1096 KiB
#include <bits/stdc++.h> using namespace std; int 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 << "\n"; } }
#Verdict Execution timeMemoryGrader output
Fetching results...