結果

問題 No.909 たぴの配置
ユーザー tails1434tails1434
提出日時 2019-12-24 21:55:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 156 ms / 3,000 ms
コード長 346 bytes
コンパイル時間 1,912 ms
コンパイル使用メモリ 81,232 KB
実行使用メモリ 108,316 KB
最終ジャッジ日時 2023-10-23 19:57:38
合計ジャッジ時間 6,233 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,208 KB
testcase_01 AC 37 ms
53,208 KB
testcase_02 AC 36 ms
53,208 KB
testcase_03 AC 36 ms
53,208 KB
testcase_04 AC 36 ms
53,208 KB
testcase_05 AC 143 ms
108,092 KB
testcase_06 AC 142 ms
108,256 KB
testcase_07 AC 133 ms
104,684 KB
testcase_08 AC 154 ms
108,180 KB
testcase_09 AC 156 ms
108,316 KB
testcase_10 AC 139 ms
104,764 KB
testcase_11 AC 139 ms
104,700 KB
testcase_12 AC 138 ms
107,896 KB
testcase_13 AC 139 ms
108,188 KB
testcase_14 AC 135 ms
104,728 KB
testcase_15 AC 138 ms
104,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    X = list(map(int, input().split()))
    Y = list(map(int, input().split()))
    length = float('inf')
    for i in range(N):
        length = min(length, X[i] + Y[i])
    print(length)
    print(0)
    for i in range(N):
        print(min(length,X[i]))
    print(length)

if __name__ == "__main__":
    main()
0