Submission #979268

#TimeUsernameProblemLanguageResultExecution timeMemory
979268MilosMilutinovicKošnja (COCI17_kosnja)C++14
50 / 50
13 ms1524 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int tt; cin >> tt; while (tt--) { int n, m; cin >> n >> m; cout << (min(n, m) - 1) * 2 << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...