結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2017-12-14 15:21:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 13:11:47 |
合計ジャッジ時間 | 1,660 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
x = int(input())y = int(input())l = int(input())count = 0if y < 0:count += 2elif x >= 1 or x < 0:count += 1x = abs(x)y = abs(y)if x <= l and not x == 0:count += 1elif x % l == 0:count += x / lelse:count += x // l + 1if y <= l and not y == 0:count += 1elif y % l == 0:count += y / lelse:count += y // l + 1print(int(count))