제출 #37969

#제출 시각아이디문제언어결과실행 시간메모리
37969tmkKošnja (COCI17_kosnja)C++14
25 / 50
0 ms2176 KiB
#include<bits/stdc++.h> using namespace std; #define st first #define nd second #define pb push_back typedef long long LL; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int k; cin>>k; for(int i=0;i<k;i++) { int n,m; cin>>n>>m; cout<<(min(n,m)-1)*2<<"\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...