結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-01 23:46:39 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 772µs | |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-26 22:54:05 |
| 合計ジャッジ時間 | 2,386 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
cnt = 0
if abs(x) > 0 :
cnt += 1
if y < 0 :
cnt += 1
if x == 0 :
cnt += 1
cnt += math.ceil(abs(x) / l)
cnt += math.ceil(abs(y) / l)
print(cnt)