Submission #1025793

#TimeUsernameProblemLanguageResultExecution timeMemory
1025793vjudge1Košnja (COCI17_kosnja)C++17
50 / 50
67 ms608 KiB
#include <bits/stdc++.h> using namespace std; void solve(){ int n, m; cin >> n >> m; if (min(n, m) % 2) cout << 4 * (min(n, m) / 2) << endl; else cout << 4 * (min(n, m) / 2) - 2 << endl; } int main(){ int t; cin >> t; while (t--) solve(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...