# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
559619 | Trunkty | Košnja (COCI17_kosnja) | C++14 | 12 ms | 1220 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 <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
#define DEBUG
#ifdef DEBUG
#define debug(x) cout << #x << ": " << x << endl
#else
#define debug(x)
#endif
int k;
int main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
cin >> k;
for(int i=1;i<=k;i++){
int n,m;
cin >> n >> m;
cout << (min(n,m)-1)*2 << "\n";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |