結果

問題 No.909 たぴの配置
ユーザー kekurekekure
提出日時 2019-10-22 01:57:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 352 ms / 3,000 ms
コード長 265 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 40,276 KB
最終ジャッジ日時 2023-09-15 15:14:33
合計ジャッジ時間 6,352 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,788 KB
testcase_01 AC 16 ms
7,912 KB
testcase_02 AC 15 ms
7,852 KB
testcase_03 AC 16 ms
7,960 KB
testcase_04 AC 15 ms
7,740 KB
testcase_05 AC 336 ms
37,968 KB
testcase_06 AC 349 ms
39,212 KB
testcase_07 AC 321 ms
37,612 KB
testcase_08 AC 335 ms
38,024 KB
testcase_09 AC 351 ms
40,276 KB
testcase_10 AC 321 ms
36,668 KB
testcase_11 AC 319 ms
36,460 KB
testcase_12 AC 338 ms
38,044 KB
testcase_13 AC 352 ms
37,832 KB
testcase_14 AC 328 ms
37,680 KB
testcase_15 AC 317 ms
36,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

l = min([x + y   for x, y in zip(X, Y)])
print(l)
print(0)
for x, y in zip(X, Y):
    if x <= y:
        print(max(x, 0))
    else:
        print(max(l - y, 0))

print(l)
0