結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
hiro_metal_core
|
| 提出日時 | 2018-01-11 02:49:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 5,000 ms |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-29 16:44:45 |
| 合計ジャッジ時間 | 4,236 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import math
x, y, r = list(map(int, input().split()))
if x < 0:
x = -x
if y < 0:
y = -y
l1_dist = x + y + math.sqrt(2) * r
if l1_dist > int(l1_dist):
print(int(l1_dist) + 1)
else:
print(int(l1_dist))
hiro_metal_core