Submission #240035

#TimeUsernameProblemLanguageResultExecution timeMemory
240035marlicuKošnja (COCI17_kosnja)C++14
50 / 50
22 ms1408 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int k, n, m; cin >> k; while (k--) { cin >> n >> m; n = min(n, m); n--; cout << n * 2 << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...