結果

問題 No.1801 Segment Game
ユーザー suosuo
提出日時 2022-01-07 21:49:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 380 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 77,692 KB
最終ジャッジ日時 2024-04-26 20:48:25
合計ジャッジ時間 4,715 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,456 KB
testcase_01 AC 365 ms
77,568 KB
testcase_02 AC 369 ms
77,612 KB
testcase_03 AC 372 ms
77,692 KB
testcase_04 AC 373 ms
77,568 KB
testcase_05 AC 371 ms
77,424 KB
testcase_06 AC 366 ms
77,192 KB
testcase_07 AC 327 ms
76,488 KB
testcase_08 AC 328 ms
76,672 KB
testcase_09 AC 380 ms
77,464 KB
testcase_10 AC 37 ms
51,840 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