Submission #235340

#TimeUsernameProblemLanguageResultExecution timeMemory
235340VEGAnnKošnja (COCI17_kosnja)C++14
50 / 50
20 ms1280 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int qq; cin >> qq; for (; qq; qq--){ int n, m; cin >> n >> m; cout << (min(n, m) - 1) * 2 << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...