結果

問題 No.1801 Segment Game
ユーザー hir355hir355
提出日時 2022-01-07 22:00:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 381 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 81,868 KB
実行使用メモリ 77,808 KB
最終ジャッジ日時 2024-04-26 20:50:31
合計ジャッジ時間 4,732 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,596 KB
testcase_01 AC 372 ms
77,164 KB
testcase_02 AC 369 ms
77,428 KB
testcase_03 AC 373 ms
77,324 KB
testcase_04 AC 378 ms
77,348 KB
testcase_05 AC 372 ms
76,868 KB
testcase_06 AC 364 ms
77,360 KB
testcase_07 AC 325 ms
76,692 KB
testcase_08 AC 326 ms
77,056 KB
testcase_09 AC 381 ms
77,808 KB
testcase_10 AC 37 ms
53,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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