結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 07:05:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2026-03-26 09:11:40 |
| 合計ジャッジ時間 | 1,933 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
x=int(input())
y=int(input())
l=int(input())
ans=0
if y>=0:
if x!=0:
ans+=1
else:
ans+=2
print(ans+(abs(x)+l-1)//l+(abs(y)+l-1)//l)
あかりき