結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2022-01-01 11:48:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-10-09 23:56:40 |
合計ジャッジ時間 | 2,025 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
X = int(input()) Y = int(input()) L = int(input()) ans = (abs(X)+L-1)//L + (abs(Y)+L-1)//L if X == 0: if Y < 0: ans += 2 else: if Y >= 0: ans += 1 else: ans += 2 print(ans)