# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
319896 |
2020-11-06T16:59:11 Z |
gustason |
Košnja (COCI17_kosnja) |
C++14 |
|
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
# |
Verdict |
Execution time |
Memory |
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 |