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