답안 #319896

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
319896 2020-11-06T16:59:11 Z gustason Košnja (COCI17_kosnja) C++14
50 / 50
19 ms 1288 KB
#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
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 512 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 9 ms 1004 KB Output is correct
7 Correct 14 ms 1260 KB Output is correct
8 Correct 10 ms 1004 KB Output is correct
9 Correct 19 ms 1288 KB Output is correct
10 Correct 10 ms 1004 KB Output is correct