結果

問題 No.1801 Segment Game
ユーザー KudeKude
提出日時 2022-01-07 21:39:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 331 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 78,864 KB
最終ジャッジ日時 2023-08-09 05:56:39
合計ジャッジ時間 4,711 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,144 KB
testcase_01 AC 327 ms
78,680 KB
testcase_02 AC 331 ms
78,864 KB
testcase_03 AC 324 ms
78,728 KB
testcase_04 AC 324 ms
78,576 KB
testcase_05 AC 329 ms
78,808 KB
testcase_06 AC 324 ms
78,716 KB
testcase_07 AC 330 ms
78,792 KB
testcase_08 AC 328 ms
78,732 KB
testcase_09 AC 329 ms
78,712 KB
testcase_10 AC 70 ms
71,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    h, w, d = map(int, input().split())
    if h > w:
        h, w = w, h
    print('SN'[h ** 2 + w % 2 <= d ** 2])
0