Submission #549221

#TimeUsernameProblemLanguageResultExecution timeMemory
549221xdfactor2034Košnja (COCI17_kosnja)C++17
50 / 50
32 ms1260 KiB
#include<bits/stdc++.h> using namespace std; signed main() { //freopen("a.in", "r", stdin); //freopen("a.out", "w", stdout); 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-1, M-1))*2<<'\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...