Submission #84390

#TimeUsernameProblemLanguageResultExecution timeMemory
84390AntonioDakiKošnja (COCI17_kosnja)C++14
50 / 50
87 ms3520 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int k, n, m; cin >> k; for (int i = 1; i <= k; ++i){ cin >> n; cin >> m; cout << (min(n, m) - 1) * 2 << endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...