結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-03 20:23:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-11-21 21:01:21 |
| 合計ジャッジ時間 | 2,137 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
cnt = 0
if Y>0:
cnt+=Y//L + (0 if Y%L==0 else 1)
X = abs(X)
if X>0:
cnt+=1
cnt+= X//L + (0 if X%L==0 else 1)
if Y<0:
cnt+=1
Y=abs(Y)
cnt+=Y//L + (0 if Y%L==0 else 1)
print(cnt)