結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2018-08-17 09:20:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-07 18:26:45 |
合計ジャッジ時間 | 1,741 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
x = int(input())y = int(input())l = int(input())x_ti = abs(x) // l if x % l == 0 else abs(x) // l + 1y_ti = abs(y) // l if y % l == 0 else abs(y) // l + 1a = 0if y >= 0:if x != 0:a = 1else:a = 2print(x_ti + y_ti + a)