Submission #738509

# Submission time Handle Problem Language Result Execution time Memory
738509 2023-05-09T01:08:07 Z mzv Košnja (COCI17_kosnja) C++17
50 / 50
13 ms 1256 KB
#include <bits/stdc++.h>

#define ccd ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define ll long long
#define endl '\n'

using namespace std;

/* ------------------------ hi lol ------------------------ */

ll n,x,y;

int main() {
    ccd
    cin >> n;
    while (n--) {
    	cin >> x >> y;
    	x = min(x,y);
    	cout << (x-1)*2 << endl;
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 8 ms 852 KB Output is correct
7 Correct 11 ms 1256 KB Output is correct
8 Correct 7 ms 852 KB Output is correct
9 Correct 11 ms 1236 KB Output is correct
10 Correct 13 ms 876 KB Output is correct