Submission #473113

# Submission time Handle Problem Language Result Execution time Memory
473113 2021-09-15T08:05:33 Z MamdouhN Košnja (COCI17_kosnja) C++17
50 / 50
123 ms 588 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
main()
{
    int n;
    cin>>n;
    while(n--)
    {
        int a,b;
        cin>>a>>b;
        cout<<(min(a,b)-1)*2<<endl;
    }
}

Compilation message

kosnja.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 73 ms 436 KB Output is correct
7 Correct 123 ms 568 KB Output is correct
8 Correct 74 ms 452 KB Output is correct
9 Correct 110 ms 588 KB Output is correct
10 Correct 74 ms 456 KB Output is correct