結果

問題 No.909 たぴの配置
ユーザー mkawa2mkawa2
提出日時 2019-11-02 12:39:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 282 ms / 3,000 ms
コード長 358 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 10,812 KB
実行使用メモリ 39,412 KB
最終ジャッジ日時 2023-10-13 01:19:49
合計ジャッジ時間 5,867 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 16 ms
7,800 KB
testcase_03 AC 16 ms
7,964 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 270 ms
37,824 KB
testcase_06 AC 278 ms
39,004 KB
testcase_07 AC 256 ms
36,452 KB
testcase_08 AC 274 ms
37,804 KB
testcase_09 AC 282 ms
38,936 KB
testcase_10 AC 259 ms
37,852 KB
testcase_11 AC 259 ms
37,532 KB
testcase_12 AC 270 ms
39,412 KB
testcase_13 AC 278 ms
38,688 KB
testcase_14 AC 257 ms
36,372 KB
testcase_15 AC 257 ms
36,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
int1 = lambda x: int(x) - 1

def main():
    n = int(input())
    xx = list(map(int, input().split()))
    yy = list(map(int, input().split()))
    d = min(x + y for x, y in zip(xx, yy))
    print(d)
    print(0)
    for x, y in zip(xx, yy):
        print(min(x, d))
    print(d)

main()
0