QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872588#8621. Knapsackucup-team5101#TL 2670ms93164kbC++235.3kb2025-01-26 02:33:462025-01-26 02:33:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3840kb

input:

6
4 3 8 1 5 4

output:

ABC.BA

result:

ok OK

Test #2:

score: 0
Accepted
time: 2670ms
memory: 93164kb

input:

10000
997167959139 344481199252 880336470888 152634074578 801642802746 425740396295 408773386884 376579721198 658396628655 317503722503 880971207868 745202647942 998002087506 434268792718 388046761498 176443917727 968016843338 733125908043 536691952768 578717268783 515787375312 454150414369 93569331...

output:

A.A..AA.AAAA..A..A.AAB..BB..BBB.BBBBB...BB.C...............................................................................................................................................................................................C...................................................................

result:

ok OK

Test #3:

score: 0
Accepted
time: 2538ms
memory: 93052kb

input:

10000
244641009859 300054748096 592075475634 321804928248 527476927808 615284875072 612503158867 79627937890 24322595515 453786026685 995645468307 935669240390 150939887597 468588586447 937973764525 148521365644 506710156469 456985188306 646860350786 385011308832 488784695957 866770562147 8902084272...

output:

.............................................AAA...A..AA...A.AA..B..B..BB....B..B..............................................................C...............................................................................................................................................................

result:

ok OK

Test #4:

score: -100
Time Limit Exceeded

input:

10000
483524125987 259923264237 336374288891 523535590429 220751244358 809124321145 816232930851 791266089174 394543529670 585773363571 110319728747 171580543238 299582720391 535468188689 496490702144 120598813561 17138628383 148284660056 752733781508 150155605777 502931759705 316245485733 844723534...

output:

...........................................A.AA.A..AA..AA..A.A...BB.....C.B.BBBB..B............................................................................................................................................................................................................................

result: