## Submission #473121

# Submission time Handle Problem Language Result Execution time Memory
473121 2021-09-15T08:15:22 Z Mr_Ph Košnja (COCI17_kosnja) C++14
50 / 50
15 ms 644 KB
```///made by : Mr_Ph :D
#include<bits/stdc++.h>
#include<unordered_map>
typedef long long ll;
typedef long long int lli;
typedef unsigned long long ull;
using namespace std;
const double PI=acos(-1.0);
const ll mod=(ll)1e9+7;
//int dx[4] = {0, 0, 1, -1};
//int dy[4] = {1, -1, 0, 0};
///the defines :)
#define endl '\n'
#define vi vector<int>
#define vll vector<ll>
#define lower(s) transform(s.begin(),s.end(),s.begin(),::tolower)
#define upper(s) transform(s.begin(),s.end(),s.begin(),::toupper)
#define ent(arr) for(int i=0;i<arr.size();i++)cin>>arr[i];
#define all(arr) arr.begin(),arr.end()
#define allr(arr) arr.rbegin(),arr.rend()
#define sz size()
///the end of the defines ;)
void solve()
{
ll a,b;
cin>>a>>b;
cout<<(min(a,b)-1)*2<<endl;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(0);
//freopen("window.in","r",stdin);
//freopen("output.txt","w",stdout);
int t=1;//int st;
cin>>t;//cin>>st;
while(t--)
solve();
}

```

#### Subtask #1 50.0 / 50.0

# 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 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 10 ms 416 KB Output is correct
7 Correct 14 ms 644 KB Output is correct
8 Correct 10 ms 528 KB Output is correct
9 Correct 15 ms 588 KB Output is correct
10 Correct 10 ms 460 KB Output is correct