Submission #319896

#TimeUsernameProblemLanguageResultExecution timeMemory
319896gustasonKošnja (COCI17_kosnja)C++14
50 / 50
19 ms1288 KiB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int t;
    cin >> t;
    while(t--) {
        int n, m;
        cin >> n >> m;
        int ans = (min(n, m) - 1) * 2;
        cout << ans << "\n";
    }
    return 0;
}
//~ check for overflows
#Verdict Execution timeMemoryGrader output
Fetching results...