結果

問題 No.1801 Segment Game
ユーザー prussian_coderprussian_coder
提出日時 2022-01-15 20:09:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 331 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 1,272 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 76,876 KB
最終ジャッジ日時 2024-05-01 18:21:01
合計ジャッジ時間 4,872 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,784 KB
testcase_01 AC 326 ms
76,328 KB
testcase_02 AC 324 ms
76,288 KB
testcase_03 AC 316 ms
76,204 KB
testcase_04 AC 320 ms
76,352 KB
testcase_05 AC 321 ms
76,208 KB
testcase_06 AC 311 ms
76,876 KB
testcase_07 AC 325 ms
76,100 KB
testcase_08 AC 331 ms
76,148 KB
testcase_09 AC 316 ms
76,280 KB
testcase_10 AC 43 ms
53,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for _ in range(N):
    a,b,c=map(int,input().split())
    if min(a**2 + (b%2)**2,b**2 + (a%2)**2) <= c**2:
        print("N")
    else:
        print("S")
0