제출 #473441

#제출 시각아이디문제언어결과실행 시간메모리
473441Beboo44Košnja (COCI17_kosnja)C++14
50 / 50
133 ms1224 KiB
#include <bits/stdc++.h> using namespace std; #define all(v) ((v).begin()), ((v).end()) #define sz(v) ((int)((v).size())) typedef long long ll; typedef vector<int> vi; typedef vector<pair<ll , int> > vpli; typedef set<char> st; typedef stack<int> s; typedef deque<int> dq; typedef queue<int> q; #define fast_io ios_base::sync_with_stdio(0); cin.tie(0) int main() { ll t; cin>>t; while(t--){ ll n,m; cin>>n>>m; ll ans = min(n,m); cout<<(ans-1)*2<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...