# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161474 | ToniB | Košnja (COCI17_kosnja) | C++14 | 178 ms | 1272 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;
int main(){
int k, m, n;
cin >> k;
for(int i; i < k; i++){
cin >> m >> n;
if(m == 1 or n == 1){
cout << "0";
}
else if(m < n){
cout << m*2;
}
else{
cout << n*2;
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |