Submission #471168

#TimeUsernameProblemLanguageResultExecution timeMemory
471168rainboyKošnja (COCI17_kosnja)C11
50 / 50
18 ms1196 KiB
#include <stdio.h> int min(int a, int b) { return a < b ? a : b; } int main() { int t; scanf("%d", &t); while (t--) { int n, m; scanf("%d%d", &n, &m); printf("%d\n", (min(n, m) - 1) * 2); } return 0; }

Compilation message (stderr)

kosnja.c: In function 'main':
kosnja.c:8:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |  scanf("%d", &t);
      |  ^~~~~~~~~~~~~~~
kosnja.c:12:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |   scanf("%d%d", &n, &m);
      |   ^~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...