結果

問題 No.1801 Segment Game
ユーザー kohei2019kohei2019
提出日時 2023-06-19 22:56:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 86,436 KB
実行使用メモリ 83,872 KB
最終ジャッジ日時 2023-09-09 18:07:20
合計ジャッジ時間 5,116 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,976 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
# 半分にできるかどうか
ans = []
for i in range(T):
    H,W,D = map(int,input().split())
    if D**2 >= H**2+W**2:
        ans.append('N')
    elif D >= H and H%2==0:
        ans.append('N')
    elif D >= W and W%2==0:
        ans.append('N')
    else:
        ans.append('S')
print(*ans,sep='\n')
0