Submission #132738

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