Submission #200924

#TimeUsernameProblemLanguageResultExecution timeMemory
200924SamAndKošnja (COCI17_kosnja)C++17
50 / 50
25 ms1272 KiB
#include <bits/stdc++.h> using namespace std; int main() { int tt; scanf("%d", &tt); while (tt--) { int n, m; scanf("%d%d", &n, &m); printf("%d\n", min(n, m) * 2 - 2); } return 0; }

Compilation message (stderr)

kosnja.cpp: In function 'int main()':
kosnja.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &tt);
     ~~~~~^~~~~~~~~~~
kosnja.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d", &n, &m);
         ~~~~~^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...