제출 #97825

#제출 시각아이디문제언어결과실행 시간메모리
97825dalgerokKošnja (COCI17_kosnja)C++17
50 / 50
17 ms1280 KiB
#include<bits/stdc++.h>
using namespace std;




int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int test;
    cin >> test;
    while(test--){
        int n, m;
        cin >> n >> m;
        cout << (min(n, m) - 1) * 2 << "\n";
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...