結果

問題 No.909 たぴの配置
ユーザー ThetaTheta
提出日時 2022-10-25 18:53:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 254 ms / 3,000 ms
コード長 419 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 10,804 KB
実行使用メモリ 39,076 KB
最終ジャッジ日時 2023-09-16 16:35:34
合計ジャッジ時間 5,851 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 14 ms
7,908 KB
testcase_02 AC 15 ms
7,784 KB
testcase_03 AC 14 ms
7,804 KB
testcase_04 AC 15 ms
7,776 KB
testcase_05 AC 241 ms
37,960 KB
testcase_06 AC 254 ms
39,076 KB
testcase_07 AC 231 ms
37,660 KB
testcase_08 AC 239 ms
37,880 KB
testcase_09 AC 252 ms
38,700 KB
testcase_10 AC 230 ms
37,496 KB
testcase_11 AC 230 ms
37,276 KB
testcase_12 AC 242 ms
37,956 KB
testcase_13 AC 252 ms
37,816 KB
testcase_14 AC 234 ms
37,644 KB
testcase_15 AC 226 ms
36,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    origin = 10**9
    N = int(input())
    X = list(map(int, input().split()))
    Y = list(map(int, input().split()))
    distance = min(x+y for x, y in zip(X, Y))

    print(distance)
    print(origin)
    for x, y in zip(X, Y):
        if x > y:
            print(origin + (distance - y))
        else:
            print(origin + x)
    print(origin + distance)


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