結果

問題 No.909 たぴの配置
ユーザー ttrttr
提出日時 2020-02-02 19:59:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 401 ms / 3,000 ms
コード長 280 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,980 KB
実行使用メモリ 41,200 KB
最終ジャッジ日時 2023-10-19 01:24:55
合計ジャッジ時間 6,907 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,180 KB
testcase_01 AC 31 ms
10,180 KB
testcase_02 AC 30 ms
10,180 KB
testcase_03 AC 31 ms
10,180 KB
testcase_04 AC 29 ms
10,180 KB
testcase_05 AC 376 ms
39,980 KB
testcase_06 AC 392 ms
41,060 KB
testcase_07 AC 362 ms
38,612 KB
testcase_08 AC 383 ms
39,952 KB
testcase_09 AC 401 ms
41,200 KB
testcase_10 AC 375 ms
38,740 KB
testcase_11 AC 366 ms
39,332 KB
testcase_12 AC 377 ms
41,096 KB
testcase_13 AC 401 ms
39,860 KB
testcase_14 AC 366 ms
38,612 KB
testcase_15 AC 366 ms
38,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = [int(x) for x in input().split()]
Y = [int(y) for y in input().split()]

maxd = 10**7
for i in range(N):
    maxd = min(maxd, X[i]+Y[i])

print(maxd)
print(0)
for i in range(N):
    if X[i] < maxd:
        print(X[i])
    else:
        print(maxd)
print(maxd)
0