QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#270733#6849. Mr. Liang play Card GameHuangHanShengAC ✓626ms87460kbC++202.0kb2023-12-01 12:43:392023-12-01 12:43:40

詳細信息

Test #1:

score: 100
Accepted
time: 626ms
memory: 87460kb

input:

50
55 2 3 8
2 1 2 1 2 2 2 1 1 1 2 2 1 1 2 1 1 2 2 1 1 1 1 1 2 2 1 1 2 2 2 1 1 2 1 2 2 2 1 1 2 2 1 1 1 1 2 2 1 2 2 2 1 1 1
42126 55001
55 3 1 8
2 3 1 1 3 3 3 2 1 2 1 2 1 2 1 3 1 3 3 2 3 2 2 3 1 1 2 2 2 2 2 3 3 2 2 2 3 1 3 2 1 2 2 1 1 2 2 3 3 3 1 1 3 3 2
39105 57552 26545
55 2 3 9
2 1 2 2 2 2 2 2 2 2 ...

output:

38200162
2330529
69176157
3661875
7083386
1021147
334792
859244
1057821
276184
1182470
1200828
1475228
3028111
796232
331782
440245
952455
977955
1210135
51990
1172231
311282
1044444
773077
1426404
4815974
1239955
1144503
120368
84132
2230930
1259948
680475
528194
599850
861273
1739942
1319720
11729...

result:

ok 50 lines