結果

問題 No.1801 Segment Game
ユーザー KeroruKeroru
提出日時 2022-01-07 21:46:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 353 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 79,388 KB
最終ジャッジ日時 2023-08-09 05:57:12
合計ジャッジ時間 4,873 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,188 KB
testcase_01 AC 346 ms
79,344 KB
testcase_02 AC 352 ms
79,292 KB
testcase_03 AC 343 ms
79,388 KB
testcase_04 AC 345 ms
79,156 KB
testcase_05 AC 353 ms
78,724 KB
testcase_06 AC 352 ms
78,752 KB
testcase_07 AC 333 ms
78,968 KB
testcase_08 AC 331 ms
78,868 KB
testcase_09 AC 351 ms
79,300 KB
testcase_10 AC 70 ms
71,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t=int(input())
for i in range(t):
    h,w,d=map(int,input().split())
    if h>w:h,w=w,h
    h**=2
    if w%2:h+=1
    if h<=d*d:k='N'
    else:k='S'
    print(k)
0