結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-24 14:25:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 358 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-03-23 20:26:46 |
| 合計ジャッジ時間 | 2,011 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
count= 0
count+=math.ceil(abs(x)/l)
count+=math.ceil(abs(y)/l)
if y>=0 and x!=0:
count+=1
elif y<0 and x!=0:
count+=2
print(count)