結果

問題 No.1801 Segment Game
ユーザー 👑 KazunKazun
提出日時 2022-01-07 21:36:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 77,568 KB
最終ジャッジ日時 2024-04-26 20:47:14
合計ジャッジ時間 2,414 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,712 KB
testcase_01 AC 131 ms
77,056 KB
testcase_02 AC 131 ms
77,056 KB
testcase_03 AC 132 ms
77,568 KB
testcase_04 AC 132 ms
77,312 KB
testcase_05 AC 130 ms
77,056 KB
testcase_06 AC 130 ms
77,312 KB
testcase_07 AC 114 ms
76,928 KB
testcase_08 AC 114 ms
76,800 KB
testcase_09 AC 129 ms
77,184 KB
testcase_10 AC 38 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
write=sys.stdout.write

T=int(input())
Ans=[""]*T
for t in range(T):
    H,W,D=map(int,input().split())

    if H%2:
        a=W*W+1
    else:
        a=W*W

    if W%2:
        b=H*H+1
    else:
        b=H*H

    Ans[t]="N" if min(a,b)<=D*D else "S"

write("\n".join(map(str,Ans)))
0