結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 16:58:49 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-08 00:19:45 |
| 合計ジャッジ時間 | 2,165 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 22 |
ソースコード
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 = x + 1 if mx > 0 else x
y,my = divmod(Y,L); y = y + 1 if my > 0 else y
comm = comm + x + y
print(comm)