結果

問題 No.909 たぴの配置
ユーザー stngstng
提出日時 2022-08-08 20:40:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 81,748 KB
実行使用メモリ 100,048 KB
最終ジャッジ日時 2023-10-19 09:08:25
合計ジャッジ時間 6,535 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
53,212 KB
testcase_02 AC 39 ms
53,212 KB
testcase_03 AC 38 ms
53,212 KB
testcase_04 AC 39 ms
53,212 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 136 ms
99,840 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = [int(i) for i in input().split()]
y = [int(i) for i in input().split()]

ans = 10**8
ctr = -1

for i in range(n):
    if ans > x[i]+y[i]:
        ans = x[i]+y[i]
        ctr = x[i]

print(ans)
print(0)
for i in range(n):
    if ctr > x[i]:
        print(x[i])
    else:
        print(ctr)
print(ans)
0