QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#270710#6849. Mr. Liang play Card GameHuangHanShengAC ✓4ms11076kbC++232.2kb2023-12-01 11:56:272023-12-01 11:56:27

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 11076kb

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