結果

問題 No.1801 Segment Game
ユーザー ああいいああいい
提出日時 2022-01-08 18:00:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,896 KB
最終ジャッジ日時 2024-04-26 21:10:16
合計ジャッジ時間 4,374 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,456 KB
testcase_01 AC 325 ms
76,288 KB
testcase_02 AC 319 ms
76,896 KB
testcase_03 AC 316 ms
76,372 KB
testcase_04 AC 319 ms
76,512 KB
testcase_05 AC 317 ms
76,800 KB
testcase_06 AC 317 ms
76,796 KB
testcase_07 AC 306 ms
76,512 KB
testcase_08 AC 304 ms
76,240 KB
testcase_09 AC 323 ms
76,620 KB
testcase_10 AC 39 ms
51,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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