結果

問題 No.1801 Segment Game
ユーザー ntudantuda
提出日時 2022-03-16 23:05:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 81,828 KB
実行使用メモリ 77,580 KB
最終ジャッジ日時 2023-10-25 06:41:44
合計ジャッジ時間 4,560 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,360 KB
testcase_01 AC 367 ms
77,292 KB
testcase_02 AC 370 ms
77,484 KB
testcase_03 AC 364 ms
77,524 KB
testcase_04 AC 365 ms
77,480 KB
testcase_05 AC 361 ms
77,580 KB
testcase_06 AC 363 ms
77,312 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 367 ms
77,136 KB
testcase_10 AC 37 ms
53,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    H,W,D = map(int,input().split())
    ans = 1
    if H & 1:
        if W & 1:
            if min(H * H + 1, W * W + 1) <= D * D:
                ans = 0
        else:
            if min(H * H + 1, W * W) <= D * D:
                ans = 0
    else:
        if W & 1:
            if min(H * H, W * W + 1) <= D * D:
                ans = 0
        else:
            if min(H, W) <= D:
                ans = 0
    print(["N","S"][ans])
0