QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#729955#8776. Not Another Constructive!ucup-team2051#WA 391ms173840kbC++203.6kb2024-11-09 18:06:312024-11-09 18:06:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

22 2
N??A??????C???????????

output:

NBBABBBBBBCBBBBBBBBBBC

result:

ok correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 44688kb

input:

18 0
COUNTINGSATELLITES

output:

COUNTINGSATELLITES

result:

ok correct

Test #3:

score: 0
Accepted
time: 8ms
memory: 14028kb

input:

2 1
??

output:

-1

result:

ok correct

Test #4:

score: 0
Accepted
time: 1ms
memory: 7876kb

input:

1 0
?

output:

B

result:

ok correct

Test #5:

score: 0
Accepted
time: 2ms
memory: 9872kb

input:

1 0
N

output:

N

result:

ok correct

Test #6:

score: 0
Accepted
time: 1ms
memory: 9732kb

input:

1 0
X

output:

X

result:

ok correct

Test #7:

score: 0
Accepted
time: 10ms
memory: 7876kb

input:

1 1
?

output:

-1

result:

ok correct

Test #8:

score: 0
Accepted
time: 10ms
memory: 9788kb

input:

1 1
N

output:

-1

result:

ok correct

Test #9:

score: 0
Accepted
time: 7ms
memory: 9988kb

input:

1 1
X

output:

-1

result:

ok correct

Test #10:

score: 0
Accepted
time: 1ms
memory: 9984kb

input:

2 0
??

output:

BB

result:

ok correct

Test #11:

score: 0
Accepted
time: 3ms
memory: 13960kb

input:

2 0
N?

output:

NB

result:

ok correct

Test #12:

score: 0
Accepted
time: 0ms
memory: 11972kb

input:

2 0
?C

output:

BC

result:

ok correct

Test #13:

score: 0
Accepted
time: 11ms
memory: 9876kb

input:

2 1
N?

output:

-1

result:

ok correct

Test #14:

score: 0
Accepted
time: 7ms
memory: 11976kb

input:

2 1
?C

output:

-1

result:

ok correct

Test #15:

score: 0
Accepted
time: 0ms
memory: 12044kb

input:

3 1
???

output:

NAC

result:

ok correct

Test #16:

score: 0
Accepted
time: 3ms
memory: 16016kb

input:

3 1
N??

output:

NAC

result:

ok correct

Test #17:

score: 0
Accepted
time: 3ms
memory: 14104kb

input:

3 1
?A?

output:

NAC

result:

ok correct

Test #18:

score: 0
Accepted
time: 0ms
memory: 13888kb

input:

3 1
??C

output:

NAC

result:

ok correct

Test #19:

score: 0
Accepted
time: 3ms
memory: 12052kb

input:

3 1
NA?

output:

NAC

result:

ok correct

Test #20:

score: 0
Accepted
time: 0ms
memory: 13836kb

input:

3 1
N?C

output:

NAC

result:

ok correct

Test #21:

score: 0
Accepted
time: 0ms
memory: 13956kb

input:

3 1
?AC

output:

NAC

result:

ok correct

Test #22:

score: 0
Accepted
time: 0ms
memory: 18112kb

input:

4 1
????

output:

NBAC

result:

ok correct

Test #23:

score: 0
Accepted
time: 4ms
memory: 16144kb

input:

4 1
X???

output:

XNAC

result:

ok correct

Test #24:

score: 0
Accepted
time: 0ms
memory: 16132kb

input:

4 1
???Z

output:

NACZ

result:

ok correct

Test #25:

score: 0
Accepted
time: 11ms
memory: 15992kb

input:

4 1
?AA?

output:

-1

result:

ok correct

Test #26:

score: 0
Accepted
time: 4ms
memory: 18124kb

input:

4 1
N???

output:

NBAC

result:

ok correct

Test #27:

score: 0
Accepted
time: 0ms
memory: 13844kb

input:

4 1
?N??

output:

BNAC

result:

ok correct

Test #28:

score: 0
Accepted
time: 0ms
memory: 16076kb

input:

4 1
??N?

output:

NANC

result:

ok correct

Test #29:

score: 0
Accepted
time: 0ms
memory: 16084kb

input:

4 1
???N

output:

NACN

result:

ok correct

Test #30:

score: 0
Accepted
time: 2ms
memory: 16068kb

input:

4 1
A???

output:

ANAC

result:

ok correct

Test #31:

score: 0
Accepted
time: 3ms
memory: 15928kb

input:

4 1
?A??

output:

NABC

result:

ok correct

Test #32:

score: 0
Accepted
time: 3ms
memory: 16128kb

input:

4 1
??A?

output:

NBAC

result:

ok correct

Test #33:

score: 0
Accepted
time: 3ms
memory: 16028kb

input:

4 1
???A

output:

NACA

result:

ok correct

Test #34:

score: 0
Accepted
time: 0ms
memory: 18196kb

input:

4 1
C???

output:

CNAC

result:

ok correct

Test #35:

score: 0
Accepted
time: 3ms
memory: 18056kb

input:

4 1
?C??

output:

NCAC

result:

ok correct

Test #36:

score: 0
Accepted
time: 0ms
memory: 16064kb

input:

4 1
??C?

output:

NACB

result:

ok correct

Test #37:

score: 0
Accepted
time: 4ms
memory: 18192kb

input:

4 1
???C

output:

NBAC

result:

ok correct

Test #38:

score: 0
Accepted
time: 4ms
memory: 19992kb

input:

5 4
?????

output:

NAACC

result:

ok correct

Test #39:

score: 0
Accepted
time: 13ms
memory: 17952kb

input:

6 14
??????

output:

-1

result:

ok correct

Test #40:

score: 0
Accepted
time: 9ms
memory: 22032kb

input:

7 14
???????

output:

-1

result:

ok correct

Test #41:

score: 0
Accepted
time: 14ms
memory: 24288kb

input:

8 43
????????

output:

-1

result:

ok correct

Test #42:

score: 0
Accepted
time: 10ms
memory: 30500kb

input:

9 55
?????????

output:

-1

result:

ok correct

Test #43:

score: 0
Accepted
time: 22ms
memory: 32460kb

input:

10 112
??????????

output:

-1

result:

ok correct

Test #44:

score: 0
Accepted
time: 26ms
memory: 32376kb

input:

11 110
???????????

output:

-1

result:

ok correct

Test #45:

score: 0
Accepted
time: 4ms
memory: 42524kb

input:

12 4
????????????

output:

BBBBBBNAAAAC

result:

ok correct

Test #46:

score: 0
Accepted
time: 41ms
memory: 40596kb

input:

13 193
?????????????

output:

-1

result:

ok correct

Test #47:

score: 0
Accepted
time: 7ms
memory: 46924kb

input:

14 91
??????????????

output:

NNNANAAACACCCC

result:

ok correct

Test #48:

score: 0
Accepted
time: 0ms
memory: 59108kb

input:

15 15
???????????????

output:

NBBBBBBBANAACCC

result:

ok correct

Test #49:

score: 0
Accepted
time: 57ms
memory: 50856kb

input:

16 261
????????????????

output:

-1

result:

ok correct

Test #50:

score: 0
Accepted
time: 114ms
memory: 59048kb

input:

17 514
?????????????????

output:

-1

result:

ok correct

Test #51:

score: 0
Accepted
time: 154ms
memory: 67400kb

input:

18 678
??????????????????

output:

-1

result:

ok correct

Test #52:

score: 0
Accepted
time: 4ms
memory: 69548kb

input:

19 40
???????????????????

output:

NBBBBBBBBNAAAAACCCC

result:

ok correct

Test #53:

score: 0
Accepted
time: 222ms
memory: 71312kb

input:

20 1019
????????????????????

output:

-1

result:

ok correct

Test #54:

score: 0
Accepted
time: 263ms
memory: 77660kb

input:

21 1218
?????????????????????

output:

-1

result:

ok correct

Test #55:

score: 0
Accepted
time: 321ms
memory: 81684kb

input:

22 1348
??????????????????????

output:

-1

result:

ok correct

Test #56:

score: 0
Accepted
time: 109ms
memory: 89956kb

input:

23 476
???????????????????????

output:

-1

result:

ok correct

Test #57:

score: 0
Accepted
time: 294ms
memory: 96192kb

input:

24 1445
????????????????????????

output:

-1

result:

ok correct

Test #58:

score: 0
Accepted
time: 277ms
memory: 98124kb

input:

25 1331
?????????????????????????

output:

-1

result:

ok correct

Test #59:

score: 0
Accepted
time: 49ms
memory: 102448kb

input:

26 459
??????????????????????????

output:

NNNANAAAAAAAAAAAACCCCCCCCC

result:

ok correct

Test #60:

score: 0
Accepted
time: 34ms
memory: 106520kb

input:

27 398
???????????????????????????

output:

NNANAAAAAACAANAAAACCCCCCCCC

result:

ok correct

Test #61:

score: 0
Accepted
time: 19ms
memory: 116860kb

input:

28 274
????????????????????????????

output:

NANAAAAAACAABBNAAAACCCCCCCCC

result:

ok correct

Test #62:

score: 0
Accepted
time: 317ms
memory: 124644kb

input:

29 1624
?????????????????????????????

output:

-1

result:

ok correct

Test #63:

score: 0
Accepted
time: 347ms
memory: 124708kb

input:

30 2079
??????????????????????????????

output:

-1

result:

ok correct

Test #64:

score: 0
Accepted
time: 391ms
memory: 124744kb

input:

31 2067
???????????????????????????????

output:

-1

result:

ok correct

Test #65:

score: 0
Accepted
time: 276ms
memory: 135276kb

input:

32 1267
????????????????????????????????

output:

-1

result:

ok correct

Test #66:

score: 0
Accepted
time: 83ms
memory: 143100kb

input:

33 928
?????????????????????????????????

output:

NNNNNAAAAAAAACAANAAAACCCCCCCCCCCC

result:

ok correct

Test #67:

score: 0
Accepted
time: 17ms
memory: 145044kb

input:

34 298
??????????????????????????????????

output:

NAAAAAAAAAACANBBBNAAAAAAACCCCCCCCC

result:

ok correct

Test #68:

score: 0
Accepted
time: 357ms
memory: 151664kb

input:

35 2361
???????????????????????????????????

output:

-1

result:

ok correct

Test #69:

score: 0
Accepted
time: 34ms
memory: 151804kb

input:

36 489
????????????????????????????????????

output:

NNAAAAAAAAAAAACBBBNAAAACACCCCCCCCCCC

result:

ok correct

Test #70:

score: 0
Accepted
time: 21ms
memory: 159740kb

input:

37 294
?????????????????????????????????????

output:

NAAAAAAAAAAAACBBBBNAAAAAACCACCCCCCCCC

result:

ok correct

Test #71:

score: 0
Accepted
time: 136ms
memory: 164340kb

input:

38 1558
??????????????????????????????????????

output:

NNANNNNNAAAAAAAAAACAAACCACCCCCCCCCCCCC

result:

ok correct

Test #72:

score: 0
Accepted
time: 103ms
memory: 173840kb

input:

39 1319
???????????????????????????????????????

output:

NNNNANAAAAAAAAAAACBAAAAACCCCCCCCCCCCCCC

result:

ok correct

Test #73:

score: 0
Accepted
time: 59ms
memory: 168080kb

input:

40 993
????????????????????????????????????????

output:

NNANAAAAAAAAAAAAAAACAACCACCCCCCCCCCCCCCC

result:

ok correct

Test #74:

score: 0
Accepted
time: 115ms
memory: 61072kb

input:

40 498
ACNANACNNACNACNNNCNCNNNANNNACNCCACAA?ANA

output:

-1

result:

ok correct

Test #75:

score: 0
Accepted
time: 197ms
memory: 48884kb

input:

40 855
NAAANAACNNNCNAANCNANCNANACANCCAANCACNCAC

output:

-1

result:

ok correct

Test #76:

score: 0
Accepted
time: 237ms
memory: 46776kb

input:

40 1007
?CNACNNAANACANACNACCC?CAANNCCCCANNANCACN

output:

-1

result:

ok correct

Test #77:

score: 0
Accepted
time: 337ms
memory: 56900kb

input:

40 1778
NACANANN?CCANNCCAACNNCCNCCCNCCNACCNC?NNN

output:

-1

result:

ok correct

Test #78:

score: 0
Accepted
time: 364ms
memory: 61192kb

input:

40 2186
ACCCACAN?NNA?AACCNNNN?ANACCANCNCNNCA?NCN

output:

-1

result:

ok correct

Test #79:

score: 0
Accepted
time: 75ms
memory: 63240kb

input:

40 332
ACAC?NCCCANAA?ACCNNC?NAC?CAC?CNCNNACNNNN

output:

-1

result:

ok correct

Test #80:

score: 0
Accepted
time: 165ms
memory: 42612kb

input:

40 712
ANCNANAAC?CACAACA?CNACCCANAACCA?CNNAANCN

output:

-1

result:

ok correct

Test #81:

score: 0
Accepted
time: 244ms
memory: 65276kb

input:

40 1127
C?CAAAANNCANANAC?NCANACANAACAACANNCCNCAC

output:

-1

result:

ok correct

Test #82:

score: 0
Accepted
time: 342ms
memory: 61112kb

input:

40 1835
CANNCAANNNAANANNCACANAC?CCCCAACA?NNNCAC?

output:

-1

result:

ok correct

Test #83:

score: 0
Accepted
time: 356ms
memory: 77416kb

input:

40 2009
CANAAAN?ANAACNCCNCCNCAAANCANCCAN?CCNCAAN

output:

-1

result:

ok correct

Test #84:

score: 0
Accepted
time: 18ms
memory: 40700kb

input:

40 54
CNAC?ACAAC?ACC?ANC?C?NNCAANCCAC?NCN?CACA

output:

-1

result:

ok correct

Test #85:

score: 0
Accepted
time: 209ms
memory: 104152kb

input:

40 955
?A?ANA?NN?C?ANC??CNNACAAC?N?AAN?AN??ANNA

output:

-1

result:

ok correct

Test #86:

score: 0
Accepted
time: 300ms
memory: 95876kb

input:

40 1451
??CCCA?N?ACCN?C???NNN??C?ANAN??NCNA??NAN

output:

-1

result:

ok correct

Test #87:

score: 0
Accepted
time: 304ms
memory: 83596kb

input:

40 1526
CN??AC?CCCCNACCNCNCCNC?CAAN?C?CA??ANCN?A

output:

-1

result:

ok correct

Test #88:

score: 0
Accepted
time: 374ms
memory: 61068kb

input:

40 2453
C?NC?CCAAN?ACCCNCC??ACAANCANCNCNNAACC?NN

output:

-1

result:

ok correct

Test #89:

score: -100
Wrong Answer
time: 48ms
memory: 59020kb

input:

40 166
?NC??AACAN??NCA?CCAA?A??CNNN?ACNN?AN?ANC

output:

-1

result:

wrong answer returned false