結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2020-06-08 16:42:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-25 22:22:40 |
合計ジャッジ時間 | 1,704 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 23 |
ソースコード
import sys for n in "XYL": exec(f"{n} = int(input())") comm = 0 if X == 0: if Y == 0: print(comm) sys.exit() elif Y < 0: comm += 2 else: if Y == 0: comm += 1 else: comm += 2 x,mx = divmod(X,L); x += 1 if mx > 0 else x y,my = divmod(Y,L); y += 1 if my > 0 else y comm = comm + x + y print(comm)