結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2018-02-05 21:59:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 430 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-08 07:24:31 |
合計ジャッジ時間 | 1,446 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
def main(): x = int(input()) y = int(input()) max_length = int(input()) if x == 0 and y > 0: operation = 0 elif y < 0: operation = 2 else: operation = 1 x = abs(x) y = abs(y) operation += x // max_length + (0 if x % max_length == 0 else 1) operation += y // max_length + (0 if y % max_length == 0 else 1) print(operation) if __name__ == '__main__': main()