# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
381412 | D_B | Košnja (COCI17_kosnja) | C++17 | 138 ms | 620 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;
int main(){
int t;
cin>>t;
for (int i = 1;i<=t;i++){
int x,y;
cin>>x>>y;
if (x==1 || y==1){
cout<<0<<'\n';
}
else{
cout<<(min(x,y)-1)*2<<'\n';
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |