Submission #84508

#TimeUsernameProblemLanguageResultExecution timeMemory
84508MatesV13Košnja (COCI17_kosnja)C++11
50 / 50
17 ms3272 KiB
#include <bits/stdc++.h> using namespace std; long long k,m,n; int main (){ ios::sync_with_stdio(0); cin.tie(0); cin >> k; for (int i=0;i<k;i++){ cin >> n >> m; if (m<n) cout << 2*(m-1) << "\n"; else cout << 2*(n-1) << "\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...