結果
| 問題 | No.1801 Segment Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-15 08:25:25 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 426 ms / 2,000 ms |
| + 311µs | |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 64,916 KB |
| 実行使用メモリ | 62,532 KB |
| 最終ジャッジ日時 | 2026-10-15 08:25:34 |
| 合計ジャッジ時間 | 7,769 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
T = int(input())
for _ in range(T):
H,W,D = map(int,input().split())
if H%2==0 and W%2==0 and D>=min(H,W):
print("N")
elif H%2==0 and W%2==1 and (D>=W or D*D>=H*H+4):
print("N")
elif H%2==1 and W%2==0 and (D>=H or D*D>=W*W+4):
print("N")
elif H%2==1 and W%2==1 and D*D>=min(W*W+2,H*H+2):
print("N")
else:
print("S")