Submission #381324

#TimeUsernameProblemLanguageResultExecution timeMemory
381324IldarKAKošnja (COCI17_kosnja)C++14
50 / 50
138 ms1516 KiB
#include <bits/stdc++.h> using namespace std; int k; int main(){ cin >> k; while(k--){ int n, m; cin >> n >> m; cout << min(n - 1, m - 1) * 2<< '\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...