結果

問題 No.1801 Segment Game
ユーザー hir355hir355
提出日時 2022-01-07 22:00:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 416 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 80,308 KB
最終ジャッジ日時 2023-08-09 05:59:19
合計ジャッジ時間 5,290 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,436 KB
testcase_01 AC 389 ms
80,308 KB
testcase_02 AC 390 ms
79,524 KB
testcase_03 AC 382 ms
79,452 KB
testcase_04 AC 416 ms
79,896 KB
testcase_05 AC 398 ms
80,184 KB
testcase_06 AC 401 ms
79,692 KB
testcase_07 AC 350 ms
79,328 KB
testcase_08 AC 352 ms
79,368 KB
testcase_09 AC 408 ms
80,216 KB
testcase_10 AC 70 ms
71,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    h, w, d = map(int, input().split())
    if h % 2 == 1:
        x = w ** 2 + 1
    else:
        x = w ** 2
    if w % 2 == 1:
        y = h ** 2 + 1
    else:
        y = h ** 2
    if min(x, y) <= d ** 2:
        print('N')
    else:
        print('S')
0