結果

問題 No.1801 Segment Game
ユーザー rlangevinrlangevin
提出日時 2023-02-13 12:35:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 367 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 79,108 KB
最終ジャッジ日時 2023-09-23 10:26:06
合計ジャッジ時間 5,019 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,076 KB
testcase_01 AC 367 ms
79,036 KB
testcase_02 AC 351 ms
78,920 KB
testcase_03 AC 330 ms
79,108 KB
testcase_04 AC 330 ms
78,720 KB
testcase_05 AC 331 ms
78,584 KB
testcase_06 AC 327 ms
78,860 KB
testcase_07 AC 338 ms
78,864 KB
testcase_08 AC 336 ms
78,848 KB
testcase_09 AC 346 ms
78,804 KB
testcase_10 AC 76 ms
71,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for i in range(T):
    H, W, D = map(int, input().split())
    if H > W:
        H, W = W, H
    if D ** 2 >= H ** 2 + (W%2) ** 2:
        print("N")
    else:
        print("S")
0