# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
473113 | 2021-09-15T08:05:33 Z | MamdouhN | Košnja (COCI17_kosnja) | C++17 | 123 ms | 588 KB |
#include<bits/stdc++.h> using namespace std; #define int long long #define endl "\n" main() { int n; cin>>n; while(n--) { int a,b; cin>>a>>b; cout<<(min(a,b)-1)*2<<endl; } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 1 ms | 204 KB | Output is correct |
3 | Correct | 1 ms | 204 KB | Output is correct |
4 | Correct | 0 ms | 204 KB | Output is correct |
5 | Correct | 0 ms | 204 KB | Output is correct |
6 | Correct | 73 ms | 436 KB | Output is correct |
7 | Correct | 123 ms | 568 KB | Output is correct |
8 | Correct | 74 ms | 452 KB | Output is correct |
9 | Correct | 110 ms | 588 KB | Output is correct |
10 | Correct | 74 ms | 456 KB | Output is correct |