結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-09-13 10:28:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 331 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-04 03:45:04 |
合計ジャッジ時間 | 1,485 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 2 |
ソースコード
# No.48 ロボットの操縦 X, Y, L = [int(input()) for i in range(3)] if X == 0 and Y > 0: result = 0 elif Y > 0: result = 1 else: result = 2 X = abs(X) Y = abs(Y) if X % L == 0: result += X // L else: result += X // L + 1 if Y % L == 0: result += Y // L else: result += Y // L + 1 print(result)