QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#580985#8776. Not Another Constructive!ucup-team4741RE 353ms887928kbC++202.6kb2024-09-22 02:37:462024-09-22 02:37:47

详细

Test #1:

score: 100
Accepted
time: 127ms
memory: 887632kb

input:

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

output:

NCNANNNNNNCNNNNNNNNNNN

result:

ok correct

Test #2:

score: 0
Accepted
time: 100ms
memory: 887632kb

input:

18 0
COUNTINGSATELLITES

output:

COUNTINGSATELLITES

result:

ok correct

Test #3:

score: 0
Accepted
time: 104ms
memory: 887852kb

input:

2 1
??

output:

-1

result:

ok correct

Test #4:

score: 0
Accepted
time: 107ms
memory: 887916kb

input:

1 0
?

output:

N

result:

ok correct

Test #5:

score: 0
Accepted
time: 88ms
memory: 887800kb

input:

1 0
N

output:

N

result:

ok correct

Test #6:

score: 0
Accepted
time: 116ms
memory: 887652kb

input:

1 0
X

output:

X

result:

ok correct

Test #7:

score: 0
Accepted
time: 87ms
memory: 887580kb

input:

1 1
?

output:

-1

result:

ok correct

Test #8:

score: 0
Accepted
time: 99ms
memory: 887688kb

input:

1 1
N

output:

-1

result:

ok correct

Test #9:

score: 0
Accepted
time: 104ms
memory: 887580kb

input:

1 1
X

output:

-1

result:

ok correct

Test #10:

score: 0
Accepted
time: 107ms
memory: 887624kb

input:

2 0
??

output:

NN

result:

ok correct

Test #11:

score: 0
Accepted
time: 100ms
memory: 887652kb

input:

2 0
N?

output:

NN

result:

ok correct

Test #12:

score: 0
Accepted
time: 95ms
memory: 887852kb

input:

2 0
?C

output:

NC

result:

ok correct

Test #13:

score: 0
Accepted
time: 104ms
memory: 887912kb

input:

2 1
N?

output:

-1

result:

ok correct

Test #14:

score: 0
Accepted
time: 116ms
memory: 887720kb

input:

2 1
?C

output:

-1

result:

ok correct

Test #15:

score: 0
Accepted
time: 124ms
memory: 887712kb

input:

3 1
???

output:

NAC

result:

ok correct

Test #16:

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

input:

3 1
N??

output:

NAC

result:

ok correct

Test #17:

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

input:

3 1
?A?

output:

NAC

result:

ok correct

Test #18:

score: 0
Accepted
time: 107ms
memory: 887928kb

input:

3 1
??C

output:

NAC

result:

ok correct

Test #19:

score: 0
Accepted
time: 92ms
memory: 887708kb

input:

3 1
NA?

output:

NAC

result:

ok correct

Test #20:

score: 0
Accepted
time: 108ms
memory: 887596kb

input:

3 1
N?C

output:

NAC

result:

ok correct

Test #21:

score: 0
Accepted
time: 96ms
memory: 887656kb

input:

3 1
?AC

output:

NAC

result:

ok correct

Test #22:

score: 0
Accepted
time: 107ms
memory: 887628kb

input:

4 1
????

output:

NACN

result:

ok correct

Test #23:

score: 0
Accepted
time: 112ms
memory: 887888kb

input:

4 1
X???

output:

XNAC

result:

ok correct

Test #24:

score: 0
Accepted
time: 100ms
memory: 887636kb

input:

4 1
???Z

output:

NACZ

result:

ok correct

Test #25:

score: 0
Accepted
time: 96ms
memory: 887632kb

input:

4 1
?AA?

output:

-1

result:

ok correct

Test #26:

score: 0
Accepted
time: 105ms
memory: 887880kb

input:

4 1
N???

output:

NACN

result:

ok correct

Test #27:

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

input:

4 1
?N??

output:

ANAC

result:

ok correct

Test #28:

score: 0
Accepted
time: 92ms
memory: 887584kb

input:

4 1
??N?

output:

NANC

result:

ok correct

Test #29:

score: 0
Accepted
time: 91ms
memory: 887628kb

input:

4 1
???N

output:

NACN

result:

ok correct

Test #30:

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

input:

4 1
A???

output:

ANAC

result:

ok correct

Test #31:

score: 0
Accepted
time: 112ms
memory: 887924kb

input:

4 1
?A??

output:

NACN

result:

ok correct

Test #32:

score: 0
Accepted
time: 95ms
memory: 887712kb

input:

4 1
??A?

output:

ANAC

result:

ok correct

Test #33:

score: 0
Accepted
time: 95ms
memory: 887916kb

input:

4 1
???A

output:

NACA

result:

ok correct

Test #34:

score: 0
Accepted
time: 87ms
memory: 887644kb

input:

4 1
C???

output:

CNAC

result:

ok correct

Test #35:

score: 0
Accepted
time: 100ms
memory: 887568kb

input:

4 1
?C??

output:

NCAC

result:

ok correct

Test #36:

score: 0
Accepted
time: 124ms
memory: 887624kb

input:

4 1
??C?

output:

NACN

result:

ok correct

Test #37:

score: 0
Accepted
time: 92ms
memory: 887584kb

input:

4 1
???C

output:

NANC

result:

ok correct

Test #38:

score: 0
Accepted
time: 108ms
memory: 887888kb

input:

5 4
?????

output:

NNAAC

result:

ok correct

Test #39:

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

input:

6 14
??????

output:

-1

result:

ok correct

Test #40:

score: 0
Accepted
time: 104ms
memory: 887644kb

input:

7 14
???????

output:

-1

result:

ok correct

Test #41:

score: 0
Accepted
time: 123ms
memory: 887624kb

input:

8 43
????????

output:

-1

result:

ok correct

Test #42:

score: 0
Accepted
time: 112ms
memory: 887716kb

input:

9 55
?????????

output:

-1

result:

ok correct

Test #43:

score: 0
Accepted
time: 100ms
memory: 887676kb

input:

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

output:

-1

result:

ok correct

Test #44:

score: 0
Accepted
time: 99ms
memory: 887584kb

input:

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

output:

-1

result:

ok correct

Test #45:

score: 0
Accepted
time: 98ms
memory: 887692kb

input:

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

output:

NNNNACNNNNNN

result:

ok correct

Test #46:

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

input:

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

output:

-1

result:

ok correct

Test #47:

score: 0
Accepted
time: 119ms
memory: 887648kb

input:

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

output:

NNNNANAAACACCC

result:

ok correct

Test #48:

score: 0
Accepted
time: 92ms
memory: 887632kb

input:

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

output:

NNNNNNNANACNNNN

result:

ok correct

Test #49:

score: 0
Accepted
time: 104ms
memory: 887696kb

input:

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

output:

-1

result:

ok correct

Test #50:

score: 0
Accepted
time: 99ms
memory: 887584kb

input:

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

output:

-1

result:

ok correct

Test #51:

score: 0
Accepted
time: 116ms
memory: 887720kb

input:

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

output:

-1

result:

ok correct

Test #52:

score: 0
Accepted
time: 111ms
memory: 887712kb

input:

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

output:

NNNNNNNNNNNNNAANACN

result:

ok correct

Test #53:

score: 0
Accepted
time: 121ms
memory: 887584kb

input:

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

output:

-1

result:

ok correct

Test #54:

score: 0
Accepted
time: 123ms
memory: 887632kb

input:

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

output:

-1

result:

ok correct

Test #55:

score: 0
Accepted
time: 120ms
memory: 887804kb

input:

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

output:

-1

result:

ok correct

Test #56:

score: 0
Accepted
time: 152ms
memory: 887920kb

input:

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

output:

-1

result:

ok correct

Test #57:

score: 0
Accepted
time: 152ms
memory: 887848kb

input:

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

output:

-1

result:

ok correct

Test #58:

score: 0
Accepted
time: 152ms
memory: 887692kb

input:

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

output:

-1

result:

ok correct

Test #59:

score: 0
Accepted
time: 159ms
memory: 887724kb

input:

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

output:

NNNNNNNNNNNNAAAAAAACCNACCC

result:

ok correct

Test #60:

score: 0
Accepted
time: 164ms
memory: 887644kb

input:

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

output:

NNNNNNNNNNNNNNNNAANAACACCCC

result:

ok correct

Test #61:

score: 0
Accepted
time: 171ms
memory: 887712kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNAANAACACC

result:

ok correct

Test #62:

score: 0
Accepted
time: 188ms
memory: 887692kb

input:

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

output:

-1

result:

ok correct

Test #63:

score: 0
Accepted
time: 184ms
memory: 887912kb

input:

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

output:

-1

result:

ok correct

Test #64:

score: 0
Accepted
time: 215ms
memory: 887652kb

input:

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

output:

-1

result:

ok correct

Test #65:

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

input:

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

output:

-1

result:

ok correct

Test #66:

score: 0
Accepted
time: 260ms
memory: 887628kb

input:

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

output:

NNNNNNNNNNNNNNNNANAAAAAACACCCCCCN

result:

ok correct

Test #67:

score: 0
Accepted
time: 248ms
memory: 887636kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNNNNNNANAAAAACCN

result:

ok correct

Test #68:

score: 0
Accepted
time: 288ms
memory: 887924kb

input:

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

output:

-1

result:

ok correct

Test #69:

score: 0
Accepted
time: 299ms
memory: 887708kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNNNNNNNAANAACNACCC

result:

ok correct

Test #70:

score: 0
Accepted
time: 301ms
memory: 887632kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNNNNNNNNNNNAAANAACC

result:

ok correct

Test #71:

score: 0
Accepted
time: 335ms
memory: 887888kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNAAAAAAAAAAACCACCCCC

result:

ok correct

Test #72:

score: 0
Accepted
time: 353ms
memory: 887632kb

input:

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

output:

NNNNNNNNNNNNNNNNNNNNNANAAAAACAANACCCCCC

result:

ok correct

Test #73:

score: -100
Runtime Error

input:

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

output:


result: