結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2023-08-19 10:40:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-29 02:22:59 |
合計ジャッジ時間 | 1,868 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 RE * 1 |
ソースコード
X = int(input()) Y = int(input()) L = int(input()) if X != 0: A = (abs(X)+ L-1)//L else: A = 0 if Y != 0: B = (abs(Y)+L-1)//L else: B = 0 if Y <0: C = 2 elif X == 0 and Y >0: C = 0 elif X != 0 and Y >=0: C = 1 print(A+B+C)