結果

問題 No.1801 Segment Game
ユーザー kozykozy
提出日時 2022-01-07 22:16:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 629 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-08-09 06:01:53
合計ジャッジ時間 7,023 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,820 KB
testcase_01 AC 615 ms
7,768 KB
testcase_02 AC 626 ms
7,740 KB
testcase_03 AC 618 ms
7,804 KB
testcase_04 AC 603 ms
7,720 KB
testcase_05 AC 612 ms
7,764 KB
testcase_06 AC 608 ms
7,960 KB
testcase_07 AC 627 ms
7,768 KB
testcase_08 AC 622 ms
7,792 KB
testcase_09 AC 629 ms
7,924 KB
testcase_10 AC 15 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for i in range(T):
  H,W,D=map(int,input().split())
  if H%2==0 and D>=W:
    print("N")
    continue
  if W%2==0 and D>=H:
    print("N")
    continue
  if (min(H,W)**2 +1)<=D**2:
    print("N")
    continue
  print("S")
0