結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
siganai
|
| 提出日時 | 2022-05-26 14:16:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 203 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-20 14:59:16 |
| 合計ジャッジ時間 | 1,774 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 17 |
ソースコード
x = int(input())
y = int(input())
l = int(input())
if x == 0 and y == 0:
print(0)
exit()
if x >= 0:
ans = -(-x//l) -(-abs(y)//l) + 1
else:
ans = -(-abs(x)//l) -(-abs(y)//l) + 2
print(ans)
siganai