結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-02 08:00:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 85,388 KB |
| 実行使用メモリ | 54,116 KB |
| 最終ジャッジ日時 | 2026-03-16 14:52:01 |
| 合計ジャッジ時間 | 2,110 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 2 |
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
if x == 0 and y == 0:
cnt = 0
elif y > 0:
cnt = 1
else:
cnt = 2
print(math.ceil(abs(x)/l)+math.ceil(abs(y)/l)+cnt)