用户输出
[1, 3]
[1, 2]
[3]
[1, 2]
[1, 7]
[3]
[2, 2, 3]
[3]
1
5
4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3759 | #1011. 小田的存钱罐 | Wrong Answer | 0 | 18596 ms | 9420 K | Python 3 / 799 B | t330034045 | 2023-11-25 16:45:54 |
def func(list1):
list2=[]
for i in list1:
list2.append(int(i))
return list2
bank=[]
list2=[]
counter=0
for i in range(int(input())):
list1=[int(i) for i in (input().split(" "))]
print(list1)
if list1[0]==1:
bank.append(list1[1])
if list1[0]==3:
list2.append(max(bank)-min(bank))
if list1[0]==2:
bank.sort(reverse=False)
m=bank.count(list1[1])
if m>int(list1[2]):
bank=bank[bank.index(list1[1]):bank.index(list1[1])+int(list1[1]):1]
if m<int(list1[2]) and m!=0:
bank= bank=bank[0:bank.index(list1[1]):1]+bank[bank.index(list1[1])+bank.count(list1[1])::]
if m==0:
continue
counter+=1
if len(list2)!=0:
for j in list2:
print(j)
用户输出
[1, 3]
[1, 2]
[3]
[1, 2]
[1, 7]
[3]
[2, 2, 3]
[3]
1
5
4
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
[1, 10000]
[1, 1000]
[2, 100, 3]
[1, 10]
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
200000
1 158260522
1 158260522
1 158260522
1 158260522
1 158260522
3
2 158260522 3
1 158260522
3
3
2
<1822667 bytes omitted>
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
<133130 bytes omitted>
用户输出
[1, 158260522]
[1, 158260522]
[1, 158260522]
[1, 158260522]
[1, 158260522]
[3]
[2, 158260522, 3]
[1, 158260522]
[3]
[3]
[2, 1582
<159682 bytes omitted>
200000
1 404926844
3
3
1 943492766
3
1 404926844
3
1 404926844
1 943492766
2 404926844 2
2 404926844
<1711818 bytes omitted>
0
0
538565922
538565922
0
0
0
0
0
0
0
0
538565922
538565922
0
0
0
0
0
538565922
538565922
538565922
<522556 bytes omitted>
用户输出
[1, 404926844]
[3]
[3]
[1, 943492766]
[3]
[1, 404926844]
[3]
[1, 404926844]
[1, 943492766]
[2, 404926844, 2]
[2, 404926844, 1]
[
<238286 bytes omitted>
200000
1 504709350
3
1 504709350
3
1 669577130
1 565454584
2 669577130 1
2 504709350 1
2 504709350 1
<1687449 bytes omitted>
0
0
60745234
60745234
60745234
60745234
164867780
164867780
164867780
104122546
164867780
164867780
<690750 bytes omitted>
用户输出
[1, 504709350]
[3]
[1, 504709350]
[3]
[1, 669577130]
[1, 565454584]
[2, 669577130, 1]
[2, 504709350, 1]
[2, 504709350, 1]
[1, 50
<271124 bytes omitted>
200000
1 101102
3
1 101102
1 806736280
3
3
2 101102 1
3
1 256060446
3
3
1 806736280
1 372964315
2 25
<1644095 bytes omitted>
0
806635178
806635178
806635178
806635178
806635178
806635178
806635178
806635178
728074795
80663517
<800164 bytes omitted>
用户输出
[1, 101102]
[3]
[1, 101102]
[1, 806736280]
[3]
[3]
[2, 101102, 1]
[3]
[1, 256060446]
[3]
[3]
[1, 806736280]
[1, 372964315]
[2, 2
<375376 bytes omitted>
200000
1 879601392
1 2208309
1 2208309
1 693906524
2 879601392 1
1 693906524
3
1 855648094
1 5626880
<1655382 bytes omitted>
691698215
853439785
853439785
853439785
853439785
853439785
978284941
978284941
978284941
978284941
<800459 bytes omitted>
用户输出
[1, 879601392]
[1, 2208309]
[1, 2208309]
[1, 693906524]
[2, 879601392, 1]
[1, 693906524]
[3]
[1, 855648094]
[1, 562688071]
[3]
[
<438365 bytes omitted>
200000
1 247639032
1 777329308
3
1 498286185
1 498286185
2 247639032 1
3
3
1 674916137
3
1 916525278
<1680170 bytes omitted>
529690276
279043123
279043123
279043123
668886246
668886246
668886246
668886246
765842382
765842382
<799363 bytes omitted>
用户输出
[1, 247639032]
[1, 777329308]
[3]
[1, 498286185]
[1, 498286185]
[2, 247639032, 1]
[3]
[3]
[1, 674916137]
[3]
[1, 916525278]
[1,
<417518 bytes omitted>
200000
1 655487992
3
3
3
3
3
3
1 611660901
3
3
1 974018054
3
3
3
1 911221319
3
1 762558266
3
3
1 744
<1663388 bytes omitted>
0
0
0
0
0
0
43827091
43827091
362357153
362357153
362357153
362357153
362357153
362357153
362357153
<800770 bytes omitted>
用户输出
[1, 655487992]
[3]
[3]
[3]
[3]
[3]
[3]
[1, 611660901]
[3]
[3]
[1, 974018054]
[3]
[3]
[3]
[1, 911221319]
[3]
[1, 762558266]
[3]
[
<1024961 bytes omitted>
200000
1 826143456
3
1 628797840
1 983206966
1 791914334
3
3
1 440668866
3
3
1 214044032
3
3
3
3
3
3
<1666495 bytes omitted>
0
354409126
354409126
542538100
542538100
769162934
769162934
769162934
769162934
769162934
76916293
<799562 bytes omitted>
用户输出
[1, 826143456]
[3]
[1, 628797840]
[1, 983206966]
[1, 791914334]
[3]
[3]
[1, 440668866]
[3]
[3]
[1, 214044032]
[3]
[3]
[3]
[3]
[3
<1049129 bytes omitted>
200000
1 848837086
3
1 178452624
1 916086662
3
3
3
3
1 96479006
3
3
1 411156951
1 531760231
1 211336
<1450452 bytes omitted>
0
737634038
737634038
737634038
737634038
819607656
819607656
819607656
819607656
819607656
81960765
<956882 bytes omitted>
用户输出
[1, 848837086]
[3]
[1, 178452624]
[1, 916086662]
[3]
[3]
[3]
[3]
[1, 96479006]
[3]
[3]
[1, 411156951]
[1, 531760231]
[1, 2113367
<125594 bytes omitted>
200000
2 293519400 200000
2 914159648 200000
2 115759974 200000
1 980862633
2 897088345 200000
2 976
<2877507 bytes omitted>
644345063
644345063
971875820
971875820
971875820
971875820
976625137
976625137
976625137
976625137
<199130 bytes omitted>
用户输出
[2, 293519400, 200000]
[2, 914159648, 200000]
[2, 115759974, 200000]
[1, 980862633]
[2, 897088345, 200000]
[2, 976279749, 200000
<290987 bytes omitted>
200000
2 197108808 200000
2 938365703 200000
2 421962281 200000
1 69997378
2 981625223 200000
1 8616
<2877806 bytes omitted>
791654718
791654718
791654718
893498516
949240756
949240756
949240756
949240756
959853107
977604071
<200470 bytes omitted>
用户输出
[2, 197108808, 200000]
[2, 938365703, 200000]
[2, 421962281, 200000]
[1, 69997378]
[2, 981625223, 200000]
[1, 861652096]
[1, 648
<299368 bytes omitted>
200000
2 241309635 200000
2 687899457 200000
1 950087837
1 236920052
3
1 550166398
1 521326769
1 248
<2883102 bytes omitted>
713167785
713167785
713167785
730494051
730494051
905234424
933105045
933105045
933105045
933105045
<199420 bytes omitted>
用户输出
[2, 241309635, 200000]
[2, 687899457, 200000]
[1, 950087837]
[1, 236920052]
[3]
[1, 550166398]
[1, 521326769]
[1, 248735373]
[2,
<300899 bytes omitted>
200000
1 249046243
1 249046243
1 249046243
1 249046243
1 249046243
1 249046243
1 249046243
1 2490462
<2559893 bytes omitted>
用户输出
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 249046243]
[1, 2490
<946957 bytes omitted>
200000
1 341006745
1 341006745
1 341006745
1 341006745
1 341006745
1 341006745
1 341006745
1 3410067
<2539893 bytes omitted>
用户输出
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 341006745]
[1, 3410
<1951132 bytes omitted>
200000
1 927123882
1 927123882
1 927123882
1 927123882
1 927123882
1 927123882
1 927123882
1 9271238
<2519893 bytes omitted>
用户输出
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 927123882]
[1, 9271
<1775797 bytes omitted>
200000
1 865468011
1 865468011
1 865468011
1 865468011
1 865468011
1 865468011
1 865468011
1 8654680
<2499893 bytes omitted>
用户输出
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 865468011]
[1, 8654
<1645702 bytes omitted>
200000
1 466019537
1 466019537
1 466019537
1 466019537
1 466019537
1 466019537
1 466019537
1 4660195
<2479893 bytes omitted>
用户输出
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 466019537]
[1, 4660
<1097362 bytes omitted>
200000
1 879738868
1 879738868
1 879738868
1 879738868
1 879738868
1 879738868
1 879738868
1 8797388
<2459893 bytes omitted>
用户输出
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 879738868]
[1, 8797
<2354992 bytes omitted>