結果

問題 No.909 たぴの配置
ユーザー aaaaaaaaaa2230
提出日時 2022-05-03 23:21:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 175 ms / 3,000 ms
コード長 294 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 82,464 KB
実行使用メモリ 108,896 KB
最終ジャッジ日時 2024-07-02 21:49:50
合計ジャッジ時間 5,261 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
X = list(map(int,input().split()))
Y = list(map(int,input().split()))
ans = 10**20
for x,y in zip(X,Y):
    ans = min(ans,x+y)
inf = 10**10
print(ans)
print(inf)
for x,y in zip(X,Y):
    cand = x
    if abs(ans-cand) > y:
        cand = ans-y
    print(cand+inf)
print(ans+inf)
0