結果

問題 No.909 たぴの配置
ユーザー c0degeekc0degeek
提出日時 2019-10-18 22:22:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 306 ms / 3,000 ms
コード長 278 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 40,692 KB
最終ジャッジ日時 2023-09-07 23:57:37
合計ジャッジ時間 5,806 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,924 KB
testcase_01 AC 14 ms
7,896 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 AC 281 ms
39,548 KB
testcase_06 AC 295 ms
40,176 KB
testcase_07 AC 271 ms
37,676 KB
testcase_08 AC 291 ms
37,960 KB
testcase_09 AC 306 ms
40,692 KB
testcase_10 AC 274 ms
36,584 KB
testcase_11 AC 269 ms
37,280 KB
testcase_12 AC 287 ms
39,028 KB
testcase_13 AC 292 ms
37,944 KB
testcase_14 AC 267 ms
37,712 KB
testcase_15 AC 262 ms
36,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = list(map(int, input().split()))
y = list(map(int, input().split()))
m = min(x[i]+y[i] for i in range(n))
print(m)
print(0)
for j in range(n):
    if x[j] <= m:
        print(x[j])
    elif y[j] <= m:
        print(m-y[j])
    else:
        print(0)
print(m)
0