# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
381326 | abzal028 | Košnja (COCI17_kosnja) | C++14 | 136 ms | 748 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>
using namespace std;
main(){
int k,n,m;
cin>>k;
for(int i = 1;i <= k; ++i){
cin>>n>>m;
n = min(n, m);
n--;
cout<<n * 2<<endl;
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |