結果

問題 No.909 たぴの配置
コンテスト
ユーザー J21blackcat
提出日時 2019-11-19 23:17:33
言語 Python3
(3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 469 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 77 ms
コンパイル使用メモリ 14,848 KB
実行使用メモリ 38,076 KB
最終ジャッジ日時 2026-11-17 01:06:51
合計ジャッジ時間 6,228 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

total = int(input())
dist_top = list(map(int, input().split(" ")))
dist_last = list(map(int, input().split(" ")))

ans = 0

for i in range(total):
    q = dist_top[i] + dist_last[i]
    if ans == 0:
        ans = q
    elif ans > q:
        ans = q

print(ans)
print(0)

for i in range(total):
    if dist_top[i] - ans < dist_last[i]:
        print(dist_top[i])
    elif ans - dist_last[i] >= 0:
        print(ans - dist_last[i])
    else:
        print(0)

print(ans)
0