結果

問題 No.909 たぴの配置
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-03 23:21:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 205 ms / 3,000 ms
コード長 294 bytes
コンパイル時間 795 ms
コンパイル使用メモリ 86,888 KB
実行使用メモリ 110,704 KB
最終ジャッジ日時 2023-09-15 20:09:50
合計ジャッジ時間 5,936 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,336 KB
testcase_01 AC 71 ms
71,544 KB
testcase_02 AC 72 ms
71,068 KB
testcase_03 AC 71 ms
71,260 KB
testcase_04 AC 71 ms
71,544 KB
testcase_05 AC 197 ms
109,992 KB
testcase_06 AC 197 ms
110,528 KB
testcase_07 AC 186 ms
106,848 KB
testcase_08 AC 205 ms
110,704 KB
testcase_09 AC 202 ms
110,624 KB
testcase_10 AC 186 ms
107,632 KB
testcase_11 AC 181 ms
107,572 KB
testcase_12 AC 193 ms
110,224 KB
testcase_13 AC 195 ms
110,520 KB
testcase_14 AC 172 ms
106,728 KB
testcase_15 AC 173 ms
106,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
X = list(map(int,input().split()))
Y = list(map(int,input().split()))
ans = 10**20
for x,y in zip(X,Y):
    ans = min(ans,x+y)
inf = 10**10
print(ans)
print(inf)
for x,y in zip(X,Y):
    cand = x
    if abs(ans-cand) > y:
        cand = ans-y
    print(cand+inf)
print(ans+inf)
0