結果
| 問題 |
No.909 たぴの配置
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-10-06 18:08:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 165 ms / 3,000 ms |
| コード長 | 298 bytes |
| コンパイル時間 | 4,091 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 128,892 KB |
| 最終ジャッジ日時 | 2025-10-06 18:08:53 |
| 合計ジャッジ時間 | 6,252 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
N = int(input())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
ans = 10**18
for x, y in zip(X, Y):
memo = x + y
if memo < ans:
ans = memo
print(ans)
ansl = [0]
for x, y in zip(X, Y):
ansl.append(min(ans, x))
ansl.append(ans)
print(*ansl, sep='\n')
学ぶマン