結果

問題 No.909 たぴの配置
ユーザー stng
提出日時 2022-08-08 20:40:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 100,616 KB
最終ジャッジ日時 2024-09-19 05:20:42
合計ジャッジ時間 6,330 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = [int(i) for i in input().split()]
y = [int(i) for i in input().split()]

ans = 10**8
ctr = -1

for i in range(n):
    if ans > x[i]+y[i]:
        ans = x[i]+y[i]
        ctr = x[i]

print(ans)
print(0)
for i in range(n):
    if ctr > x[i]:
        print(x[i])
    else:
        print(ctr)
print(ans)
0