結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2017-12-14 15:06:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 13:10:53 |
合計ジャッジ時間 | 1,901 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 22 |
ソースコード
x = int(input()) y = int(input()) l = int(input()) count = 0 x = abs(x) y = abs(y) if y < 0: count += 2 elif x >= 1 or x < 0: count += 1 if x % l == 0: count += x / l else: count += x // l + x % l if y % l == 0: count = y / l else: count += y // l + y % l print(int(count))