結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-16 12:30:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-11-07 22:56:26 |
| 合計ジャッジ時間 | 2,140 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
cnt = 0
if Y < 0:
cnt += 2
cnt += -(-abs(Y)//L)
if X != 0:
cnt += -(-abs(X)//L)
elif Y > 0:
cnt += -(-Y//L)
if X != 0:
cnt += 1
cnt += -(-abs(X)//L)
print(cnt)