用户输出
11
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#116953 | #1466. [L1-4] 排座位 | Wrong Answer | 0 | 6237 ms | 7080 K | Python 3 / 676 B | Hensenber | 2025-04-21 11:52:53 |
def sum_list(lst,max):
result = max
length = len(lst)
even_sum = 0
odd_sum = 0
for i in range(0,length,2):
even_sum += lst[i]
for i in range(1,length,2):
odd_sum += lst[i]
the_max = even_sum if even_sum>odd_sum else odd_sum
if the_max > max:
result = the_max
return result
n = int(input())
chairs = []
string = input()
for i in range(n):
chairs.append(int(string.split()[i]))
temp_chairs = chairs[:]
the_max = sum(temp_chairs)
for i in range(n):
temp_chairs = chairs[-i:]
if sum_list(temp_chairs,the_max) > the_max:
the_max = sum_list(temp_chairs,the_max)
print(the_max)
用户输出
11
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
8
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
10
-214442592 727638427 -162762810 810177901 -131419228 -206941528 662733475 71244559 36312067 -2914
<6 bytes omitted>
用户输出
1301111945
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
10
576108483 979325742 -644138027 217915108 -845952910 560588962 -136938729 -151086326 -320114929 -7
<9 bytes omitted>
用户输出
810256621
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
50000
-180238264 -56633859 -124452422 -183424149 917572298 437550436 -425008284 -190677703 599835739
<519286 bytes omitted>
50000
-616351375 -353492348 -456056793 -191331979 449339946 13509555 -534962532 627945279 509684631
<519373 bytes omitted>
50000
-999838749 -941347120 -961367951 -863191546 -703541913 463798831 -536407870 -712811781 4091100
<519181 bytes omitted>
50000
-242188912 428086770 -805853130 639721639 885937994 344226731 -662848161 -808461448 -761778231
<519256 bytes omitted>
50000
336495166 -194686842 434790094 881974924 -299244430 -80492653 302289334 -712810337 122682228 -
<519274 bytes omitted>