max与2026
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述
现有两个序列和。
对于序列,有个整数,即;
对于序列,有个整数,即;
请计算:。
输入格式
第一行一个正整数,表示序列的长度。
第二行个整数,。
第三行一个正整数,表示序列的长度。
第三行个整数,。
输出格式
输出一个整数,即最终答案。
输入输出样例 #1
输入 #1
6
5 -10 2026 0 1000 -2026
2
20 -5
输出 #1
24337
输入输出样例 #2
输入 #2
2
0 5000
6
0 1000 3000 -5000 7000 2026
输出 #2
47104
说明/提示
hello,2026
- Status
- Done
- Rule
- XCPC
- Problem
- 5
- Start at
- 2026-1-1 8:00
- End at
- 2026-1-7 20:00
- Duration
- 156 hour(s)
- Host
- Partic.
- 23