結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2020-07-14 19:21:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-18 09:21:36 |
合計ジャッジ時間 | 1,697 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 25 |
ソースコード
X = int(input()) Y = int(input()) L = int(input()) if X != 0: ans += 1 if Y < 0: ans += 1 elif Y < 0: ans += 2 for a in [X, Y]: d, m = divmod(a, L) ans += abs(d) ans += [0, 1][m != 0] print(ans)