Submission #738509

#TimeUsernameProblemLanguageResultExecution timeMemory
738509mzvKošnja (COCI17_kosnja)C++17
50 / 50
13 ms1256 KiB
#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 timeMemoryGrader output
Fetching results...