結果

問題 No.1801 Segment Game
ユーザー puznekopuzneko
提出日時 2022-01-14 22:57:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 208 ms / 2,000 ms
コード長 406 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 132,272 KB
最終ジャッジ日時 2024-04-30 16:44:28
合計ジャッジ時間 3,553 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,876 KB
testcase_01 AC 197 ms
132,100 KB
testcase_02 AC 201 ms
132,272 KB
testcase_03 AC 196 ms
132,112 KB
testcase_04 AC 195 ms
132,072 KB
testcase_05 AC 196 ms
131,972 KB
testcase_06 AC 192 ms
131,844 KB
testcase_07 AC 204 ms
132,196 KB
testcase_08 AC 208 ms
132,016 KB
testcase_09 AC 196 ms
132,256 KB
testcase_10 AC 40 ms
52,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
t, *indata = map(int, stdin.read().split())
offset = 0
for i in range(t):
    h, w, d  = indata[offset + 3*i],indata[offset + 3*i+1],indata[offset + 3*i+2]
    if h * h + 1 <= d * d:
        print("N")
    elif w * w + 1 <= d * d:
        print("N")
    elif (h % 2 == 0) & (w <= d):
        print("N")
    elif (w % 2 == 0) & (h <= d):
        print("N")
    else:
        print("S")
0