結果

問題 No.909 たぴの配置
ユーザー tamatotamato
提出日時 2020-02-15 12:02:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 186 ms / 3,000 ms
コード長 404 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 82,096 KB
実行使用メモリ 121,220 KB
最終ジャッジ日時 2024-04-16 03:09:14
合計ジャッジ時間 6,121 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,556 KB
testcase_01 AC 39 ms
53,204 KB
testcase_02 AC 40 ms
52,596 KB
testcase_03 AC 39 ms
53,036 KB
testcase_04 AC 39 ms
53,740 KB
testcase_05 AC 176 ms
120,768 KB
testcase_06 AC 175 ms
121,220 KB
testcase_07 AC 165 ms
116,232 KB
testcase_08 AC 180 ms
120,668 KB
testcase_09 AC 186 ms
121,100 KB
testcase_10 AC 166 ms
115,980 KB
testcase_11 AC 162 ms
115,920 KB
testcase_12 AC 174 ms
120,452 KB
testcase_13 AC 173 ms
121,036 KB
testcase_14 AC 162 ms
116,624 KB
testcase_15 AC 164 ms
116,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    X = list(map(int, input().split()))
    Y = list(map(int, input().split()))

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


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