# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
319896 | gustason | Košnja (COCI17_kosnja) | C++14 | 19 ms | 1288 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|---|---|---|---|
Fetching results... |