結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-01-07 22:14:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 341 ms / 2,000 ms |
| コード長 | 357 bytes |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-14 11:50:42 |
| 合計ジャッジ時間 | 4,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
H,W,D=map(int,input().split())
if H*H+W*W<=D*D:
print("N")
elif H%2==0 and W<=D:
print("N")
elif W*W+1<=D*D:
print("N")
elif H*H+1<=D*D:
print("N")
elif W%2==0 and H<=D:
print("N")
else:
print("S")
titia