Submission #949061

#TimeUsernameProblemLanguageResultExecution timeMemory
949061rainboy직사각형 게임 (KPI13_game)C11
0 / 1
1 ms416 KiB
#include <stdio.h> int main() { int a, b, c, d, can; scanf("%d%d%d%d", &a, &b, &c, &d); can = 0; if (c <= a && (a - c) * (a - c) + b * b >= d * d) can = 1; if (c <= b && a * a + (b - c) * (b - c) >= d * d) can = 1; if (d <= a && (a - d) * (a - d) + b * b >= c * c) can = 1; if (d <= b && a * a + (b - d) * (b - d) >= c * c) can = 1; printf(can ? "First\n" : "Second\n"); return 0; }

Compilation message (stderr)

game.c: In function 'main':
game.c:6:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |  scanf("%d%d%d%d", &a, &b, &c, &d);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...