結果

問題 No.1801 Segment Game
ユーザー suosuo
提出日時 2022-01-07 21:49:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 405 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 80,460 KB
最終ジャッジ日時 2023-08-09 05:57:23
合計ジャッジ時間 5,146 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,264 KB
testcase_01 AC 393 ms
79,388 KB
testcase_02 AC 394 ms
79,724 KB
testcase_03 AC 392 ms
80,068 KB
testcase_04 AC 403 ms
80,460 KB
testcase_05 AC 394 ms
80,388 KB
testcase_06 AC 390 ms
80,212 KB
testcase_07 AC 347 ms
78,844 KB
testcase_08 AC 346 ms
79,016 KB
testcase_09 AC 405 ms
79,148 KB
testcase_10 AC 72 ms
71,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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