QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#226752#1439. Football Matchucup-team017#AC ✓1ms3952kbC++141.3kb2023-10-26 15:30:422023-10-26 15:30:42

详细

Test #1:

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

input:

4
YNNY

output:

YES
2 1 1 2 

result:

ok OK

Test #2:

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

input:

3
NNN

output:

YES
1 2 4 

result:

ok OK

Test #3:

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

input:

4
NNNN

output:

YES
1 1 3 6 

result:

ok OK

Test #4:

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

input:

5
NNNNN

output:

YES
1 1 1 4 8 

result:

ok OK

Test #5:

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

input:

3
YNN

output:

YES
2 1 1 

result:

ok OK

Test #6:

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

input:

4
NNYN

output:

YES
2 2 1 4 

result:

ok OK

Test #7:

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

input:

5
NNYNN

output:

YES
1 1 2 1 1 

result:

ok OK

Test #8:

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

input:

3
YYN

output:

NO

result:

ok OK

Test #9:

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

input:

4
NNYY

output:

YES
1 1 2 2 

result:

ok OK

Test #10:

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

input:

5
YNYNN

output:

YES
7 1 7 2 4 

result:

ok OK

Test #11:

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

input:

3
YYY

output:

YES
1 1 1 

result:

ok OK

Test #12:

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

input:

4
YYNY

output:

YES
1 1 2 1 

result:

ok OK

Test #13:

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

input:

5
YYNNY

output:

YES
2 2 1 1 2 

result:

ok OK

Test #14:

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

input:

4
YYYY

output:

NO

result:

ok OK

Test #15:

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

input:

5
YNYYY

output:

YES
5 3 1 1 1 

result:

ok OK

Test #16:

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

input:

5
YYYYY

output:

YES
1 1 1 1 1 

result:

ok OK

Test #17:

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

input:

49
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

output:

YES
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok OK

Test #18:

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

input:

50
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

output:

NO

result:

ok OK

Test #19:

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

input:

49
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 48 96 

result:

ok OK

Test #20:

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

input:

50
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 49 98 

result:

ok OK

Test #21:

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

input:

50
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYN

output:

YES
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 

result:

ok OK

Test #22:

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

input:

49
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYNYYYYYYYYYYYYYYYYY

output:

YES
93 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 47 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok OK

Test #23:

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

input:

50
NNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 

result:

ok OK

Test #24:

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

input:

49
YNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok OK

Test #25:

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

input:

37
YNYYYYYYYYYNYNNYYNNNYYYNNYNYNYNYYYNNY

output:

YES
2 1 2 2 2 2 2 2 2 2 2 1 2 1 1 2 2 1 1 1 2 2 2 1 1 2 1 2 1 2 1 2 2 2 1 1 2 

result:

ok OK

Test #26:

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

input:

4
NYNN

output:

YES
2 1 2 4 

result:

ok OK

Test #27:

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

input:

29
NNYNNNNNNNNYNNNNNNNNNNNNNNNNN

output:

YES
1 1 103 1 1 1 1 1 1 1 1 103 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 26 52 

result:

ok OK

Test #28:

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

input:

21
YYYYNYYNYYYYYNYNYNYYN

output:

YES
2 2 2 2 1 2 2 1 2 2 2 2 2 1 2 1 2 1 2 2 1 

result:

ok OK

Test #29:

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

input:

12
YYYYYNYYYYYY

output:

YES
1 1 1 1 1 2 1 1 1 1 1 1 

result:

ok OK

Test #30:

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

input:

14
NYYYYYNYYYYYYY

output:

YES
1 2 2 2 2 2 1 2 2 2 2 2 2 2 

result:

ok OK

Test #31:

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

input:

9
YYYYYYNNN

output:

YES
7 7 7 7 7 7 1 2 4 

result:

ok OK

Test #32:

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

input:

48
NNNNYYNNYNNNNNNYNNNNNNNNNNYYNNNNNNNYNNNNNNNNNNNN

output:

YES
2 2 2 2 1 1 2 2 1 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 

result:

ok OK

Test #33:

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

input:

12
YYYYNYNYNNNY

output:

YES
1 1 1 1 2 1 2 1 2 2 2 1 

result:

ok OK

Test #34:

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

input:

13
NNNNYNYNNNNNN

output:

YES
1 1 1 1 39 1 39 1 1 1 1 10 20 

result:

ok OK

Test #35:

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

input:

50
NNNNYYNYYYYNNNNYYNNYYNNNNYNNYYYYNNNNNYYYYNYYNNNYYN

output:

YES
2 2 2 2 1 1 2 1 1 1 1 2 2 2 2 1 1 2 2 1 1 2 2 2 2 1 2 2 1 1 1 1 2 2 2 2 2 1 1 1 1 2 1 1 2 2 2 1 1 2 

result:

ok OK

Test #36:

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

input:

30
YNYNNNNYNNYNNYYNYYYYNNYNNYNNNY

output:

YES
1 2 1 2 2 2 2 1 2 2 1 2 2 1 1 2 1 1 1 1 2 2 1 2 2 1 2 2 2 1 

result:

ok OK

Test #37:

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

input:

46
NNNNNYNNNNNNYNNNNNNNNNNNNNNNNNYNNNNNNNYNNNNNYN

output:

YES
2 2 2 2 2 1 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 1 2 

result:

ok OK

Test #38:

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

input:

16
NYYYYYYNNYYNYYYY

output:

YES
1 2 2 2 2 2 2 1 1 2 2 1 2 2 2 2 

result:

ok OK

Test #39:

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

input:

8
YYYNYYYY

output:

YES
1 1 1 2 1 1 1 1 

result:

ok OK

Test #40:

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

input:

44
YNYNNNNNNYNNNNYNNNNNNNYNNNYYYYNYNYNNYNNNNNNN

output:

YES
2 1 2 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 1 1 2 1 1 1 2 2 2 2 1 2 1 2 1 1 2 1 1 1 1 1 1 1 

result:

ok OK

Test #41:

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

input:

42
NYYYYYNNNNNNNNYNNYYYYYYNYYYYYNYYYYYYYNYYNN

output:

YES
1 2 2 2 2 2 1 1 1 1 1 1 1 1 2 1 1 2 2 2 2 2 2 1 2 2 2 2 2 1 2 2 2 2 2 2 2 1 2 2 1 1 

result:

ok OK

Test #42:

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

input:

15
NYNNNNYYYNNNYYY

output:

YES
1 2 1 1 1 1 2 2 2 1 1 1 2 2 2 

result:

ok OK

Test #43:

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

input:

21
NNNYNYYYYNYYNYYYNYYYY

output:

YES
1 1 1 23 1 23 23 23 23 1 23 23 6 23 23 23 12 23 23 23 23 

result:

ok OK

Test #44:

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

input:

23
YYYYYNYNNYNNNNYNYYNNYYN

output:

YES
39 39 39 39 39 1 39 1 1 39 1 1 1 1 39 1 39 39 1 10 39 39 20 

result:

ok OK

Test #45:

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

input:

29
YYYYYNNYYYYNNNNYYNNNYYNNYNNNN

output:

YES
55 55 55 55 55 1 1 55 55 55 55 1 1 1 1 55 55 1 1 1 55 55 1 1 55 1 1 14 28 

result:

ok OK

Test #46:

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

input:

38
YYNNNYYYNNNYYNNNNNNYNNNNNNYYYYNNNNNNNY

output:

YES
1 1 2 2 2 1 1 1 2 2 2 1 1 2 2 2 2 2 2 1 2 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 1 

result:

ok OK

Test #47:

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

input:

4
NYYY

output:

YES
2 1 1 1 

result:

ok OK

Test #48:

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

input:

39
NNYYYYYYYNYYYYYYYYYYYYYYYYYYYYYYYNYNYYY

output:

YES
1 1 15 15 15 15 15 15 15 1 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 4 15 8 15 15 15 

result:

ok OK

Test #49:

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

input:

14
NNNYNNNNNNNNNN

output:

YES
2 2 2 1 2 2 2 2 2 2 2 2 2 4 

result:

ok OK

Test #50:

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

input:

48
YNNNNYYYYNYYNNYYYYNNYNNYNYYYYYYNYYYYNNNNYNYNNNNN

output:

YES
1 2 2 2 2 1 1 1 1 2 1 1 2 2 1 1 1 1 2 2 1 2 2 1 2 1 1 1 1 1 1 2 1 1 1 1 2 2 2 2 1 2 1 2 2 2 2 2 

result:

ok OK

Test #51:

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

input:

30
NNNNNNNYYNYNNNNYNNNYNNNNYNNNYY

output:

YES
1 1 1 1 1 1 1 2 2 1 2 1 1 1 1 2 1 1 1 2 1 1 1 1 2 1 1 1 2 2 

result:

ok OK

Test #52:

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

input:

36
YNYYYYYNYNNNYNYYNYYNYNNYNNYYNNNYYNYN

output:

YES
1 2 1 1 1 1 1 2 1 2 2 2 1 2 1 1 2 1 1 2 1 2 2 1 2 2 1 1 2 2 2 1 1 2 1 2 

result:

ok OK

Test #53:

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

input:

26
YNYYYYYYYYYNYYYNYYYYYYYYYY

output:

YES
1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1 1 1 1 1 1 1 1 1 

result:

ok OK

Test #54:

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

input:

33
YNNYNNNNNYYYYNNNNYYNYNNYNNYNNYNYN

output:

YES
2 1 1 2 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 1 2 1 1 2 1 1 2 1 1 2 1 2 1 

result:

ok OK