結果

問題 No.909 たぴの配置
ユーザー Chihaya_chanChihaya_chan
提出日時 2020-06-14 02:37:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 373 ms / 3,000 ms
コード長 336 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 39,300 KB
最終ジャッジ日時 2023-09-08 12:53:49
合計ジャッジ時間 7,719 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,840 KB
testcase_01 AC 16 ms
7,816 KB
testcase_02 AC 15 ms
7,760 KB
testcase_03 AC 16 ms
7,876 KB
testcase_04 AC 16 ms
7,904 KB
testcase_05 AC 370 ms
37,920 KB
testcase_06 AC 369 ms
39,300 KB
testcase_07 AC 341 ms
35,232 KB
testcase_08 AC 358 ms
37,976 KB
testcase_09 AC 373 ms
39,124 KB
testcase_10 AC 345 ms
36,548 KB
testcase_11 AC 338 ms
37,448 KB
testcase_12 AC 370 ms
37,924 KB
testcase_13 AC 371 ms
38,952 KB
testcase_14 AC 353 ms
35,292 KB
testcase_15 AC 343 ms
36,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=list(map(int,input().split()))
Y=list(map(int,input().split()))
ans=10**100
for i in range(N):
    ans=min(ans,X[i]+Y[i])
print(ans)
for i in range(N+1):
    if i==0:
        print(0)
        continue
    else:
        if ans>=X[i-1]:
            print(X[i-1])
        elif ans<X[i-1]:
            print(ans)
print(ans)
0