結果

問題 No.1801 Segment Game
ユーザー 👑 H20H20
提出日時 2022-01-08 01:11:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 1,021 ms
コンパイル使用メモリ 81,988 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2024-04-26 21:00:43
合計ジャッジ時間 4,650 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,584 KB
testcase_01 AC 327 ms
76,672 KB
testcase_02 AC 312 ms
76,556 KB
testcase_03 AC 317 ms
76,356 KB
testcase_04 AC 321 ms
76,672 KB
testcase_05 AC 320 ms
76,492 KB
testcase_06 AC 312 ms
76,672 KB
testcase_07 AC 304 ms
76,248 KB
testcase_08 AC 299 ms
76,292 KB
testcase_09 AC 312 ms
76,672 KB
testcase_10 AC 37 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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