結果

問題 No.909 たぴの配置
コンテスト
ユーザー flippergo
提出日時 2025-01-18 08:29:55
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 111 ms / 3,000 ms
コード長 215 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 343 ms
コンパイル使用メモリ 85,632 KB
実行使用メモリ 123,136 KB
最終ジャッジ日時 2026-06-17 10:21:05
合計ジャッジ時間 4,589 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
X = list(map(int,input().split()))
Y = list(map(int,input().split()))
L = X[0]+Y[0]
for i in range(1,N):
    L = min(L,X[i]+Y[i])
print(L)
print(0)
for i in range(N):
    print(min(X[i],L))
print(L)
0