# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
200924 | SamAnd | Košnja (COCI17_kosnja) | C++17 | 25 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 <bits/stdc++.h>
using namespace std;
int main()
{
int tt;
scanf("%d", &tt);
while (tt--)
{
int n, m;
scanf("%d%d", &n, &m);
printf("%d\n", min(n, m) * 2 - 2);
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |