# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
473114 |
2021-09-15T08:06:26 Z |
_L__ |
Košnja (COCI17_kosnja) |
C++17 |
|
15 ms |
588 KB |
// This code is written by _L__
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define F_word ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
typedef long long ll;
typedef long double ld;
const int mod = 1e9+7, N = 2e5+13, inf = 1e9+1;
const ld E = 1e-6;
#define ff first
#define ss second
int main(void){
F_word;
int k; cin >> k;
while(k--){
int l, r; cin >> l >> r;
cout << (min(l,r)-1)*2 << endl;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Correct |
1 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 |
512 KB |
Output is correct |
7 |
Correct |
15 ms |
588 KB |
Output is correct |
8 |
Correct |
11 ms |
452 KB |
Output is correct |
9 |
Correct |
15 ms |
588 KB |
Output is correct |
10 |
Correct |
11 ms |
476 KB |
Output is correct |