結果

問題 No.909 たぴの配置
ユーザー takakintakakin
提出日時 2020-05-15 14:32:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 519 ms / 3,000 ms
コード長 280 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 11,916 KB
実行使用メモリ 42,132 KB
最終ジャッジ日時 2023-10-19 03:48:22
合計ジャッジ時間 9,075 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,056 KB
testcase_01 AC 31 ms
10,056 KB
testcase_02 AC 30 ms
10,056 KB
testcase_03 AC 30 ms
10,056 KB
testcase_04 AC 31 ms
10,056 KB
testcase_05 AC 476 ms
39,856 KB
testcase_06 AC 500 ms
40,936 KB
testcase_07 AC 458 ms
39,544 KB
testcase_08 AC 483 ms
39,832 KB
testcase_09 AC 519 ms
42,132 KB
testcase_10 AC 470 ms
39,672 KB
testcase_11 AC 466 ms
39,212 KB
testcase_12 AC 486 ms
40,972 KB
testcase_13 AC 515 ms
41,996 KB
testcase_14 AC 462 ms
39,544 KB
testcase_15 AC 462 ms
38,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
X=[int(i) for i in input().split()]
Y=[int(i) for i in input().split()]
ans=10**7
for i in range(n):
  ans=min(ans,X[i]+Y[i])
print(ans)
print(0)
for i in range(n):
  print(max(min(X[i],ans-Y[i]),0))
print(ans)
0