結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2022-06-09 12:23:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-21 05:32:19 |
合計ジャッジ時間 | 1,671 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
import math X = int(input()) Y = int(input()) L = int(input()) Y_ziku = math.ceil(abs(Y) / L) X_ziku = math.ceil(abs(X) / L) if Y >= 1 and X == 0: print(Y_ziku) elif Y >= 0: print(Y_ziku + X_ziku + 1) elif Y < 0: print(Y_ziku + X_ziku + 2) else: print(0)