# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
158349 | dcj | Košnja (COCI17_kosnja) | C++14 | 178 ms | 1528 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, N, M;
cin >> K;
int r[K];
for (int i=0;i<K;i++) {
cin >> N >> M;
if (N>M)
N=M;
r[i]=2*(N-1);
}
for (int i=0;i<K;i++)
cout << r[i] << endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |