Submission #158349

#TimeUsernameProblemLanguageResultExecution timeMemory
158349dcjKošnja (COCI17_kosnja)C++14
50 / 50
178 ms1528 KiB
#include <iostream> using namespace std; int main() { int K, N, M; cin >> K; int r[K]; for (int i=0;i<K;i++) { cin >> N >> M; if (N>M) N=M; r[i]=2*(N-1); } for (int i=0;i<K;i++) cout << r[i] << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...