Submission #500301

# Submission time Handle Problem Language Result Execution time Memory
500301 2021-12-30T16:33:53 Z kappa Košnja (COCI17_kosnja) C++14
50 / 50
84 ms 1216 KB
#include <bits/stdc++.h>

using namespace std;

int t, n, m;

int main(){
    cin >> t;

    while(t--){
        cin >> n >> m;

        int a = min(n, m);

        cout << 2 * (a - 1) << "\n";
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 292 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 288 KB Output is correct
6 Correct 54 ms 832 KB Output is correct
7 Correct 82 ms 1200 KB Output is correct
8 Correct 59 ms 832 KB Output is correct
9 Correct 84 ms 1216 KB Output is correct
10 Correct 57 ms 924 KB Output is correct