結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-09-13 10:19:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 236 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,572 KB |
最終ジャッジ日時 | 2024-07-04 03:44:42 |
合計ジャッジ時間 | 6,782 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 1 TLE * 1 -- * 21 |
ソースコード
# No.48 ロボットの操縦 X, Y, L = [int(input()) for i in range(3)] X = abs(X) Y = abs(Y) if X == 0 and Y > 0: result = 0 elif Y > 0: result = 1 else: result = 2 while X > 0: result += 1 X -= L while Y > 0: result += 1 Y -= L print(result)