# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
381340 | Madiyar_bot | Košnja (COCI17_kosnja) | C++11 | 134 ms | 1000 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>
#define ll long long
#define ld long double
#define boost ios_base::sync_with_stdio(NULL) , cin.tie(NULL) , cout.tie(NULL);
#define pb push_back
#define in insert
#define all(x) x.begin(),x.end()
#define sz(x) x.size()
using namespace std;
const int INF = int(1e9) + 7 ;
const int maxn = (int)1e5 + 1;
int n ;
vector<int> v ;
int main(){
cin >> n ;
for(int i = 1 ; i <= n ; i ++ ){
int x , y ;
cin >> x >> y ;
int mn = min( x , y ) ;
v.pb(mn * 2 - 2 ) ;
}
for(int i = 0 ; i < sz(v) ; i++ ){
cout << v[i] << endl;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |