제출 #240035

#제출 시각아이디문제언어결과실행 시간메모리
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...