QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#51439#1439. Football MatchGuanYunchangAC ✓3ms3860kbC++111.4kb2022-10-02 14:11:362022-10-02 14:11:39

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3644kb

input:

4
YNNY

output:

YES
2 1 1 2

result:

ok OK

Test #2:

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

input:

3
NNN

output:

YES
999 1000 1

result:

ok OK

Test #3:

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

input:

4
NNNN

output:

YES
1 1 1 1

result:

ok OK

Test #4:

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

input:

5
NNNNN

output:

YES
999 1000 1 1 1

result:

ok OK

Test #5:

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

input:

3
YNN

output:

YES
2 1 1

result:

ok OK

Test #6:

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

input:

4
NNYN

output:

YES
1 2 1000 3

result:

ok OK

Test #7:

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

input:

5
NNYNN

output:

YES
1 1 4 1 1

result:

ok OK

Test #8:

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

input:

3
YYN

output:

NO

result:

ok OK

Test #9:

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

input:

4
NNYY

output:

YES
1 1 2 2

result:

ok OK

Test #10:

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

input:

5
YNYNN

output:

YES
2000 999 2000 1000 1

result:

ok OK

Test #11:

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

input:

3
YYY

output:

YES
10 10 10

result:

ok OK

Test #12:

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

input:

4
YYNY

output:

YES
1 1 2 1

result:

ok OK

Test #13:

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

input:

5
YYNNY

output:

YES
2 2 1 1 2

result:

ok OK

Test #14:

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

input:

4
YYYY

output:

NO

result:

ok OK

Test #15:

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

input:

5
YNYYY

output:

YES
2 6 2 2 10

result:

ok OK

Test #16:

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

input:

5
YYYYY

output:

YES
10 10 10 10 10

result:

ok OK

Test #17:

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

input:

49
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

output:

YES
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10

result:

ok OK

Test #18:

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

input:

50
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

output:

NO

result:

ok OK

Test #19:

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

input:

49
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
999 1000 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 #20:

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

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 1 1

result:

ok OK

Test #21:

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

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: 2ms
memory: 3812kb

input:

49
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYNYYYYYYYYYYYYYYYYY

output:

YES
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 2 2 2 2 94 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 186

result:

ok OK

Test #23:

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

input:

50
NNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
1 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1000 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

result:

ok OK

Test #24:

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

input:

49
YNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
48 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: 3ms
memory: 3772kb

input:

37
YNYYYYYYYYYNYNNYYNNNYYYNNYNYNYNYYYNNY

output:

YES
14 1 14 14 14 14 14 14 14 14 14 1 14 1 1 14 14 1 1 1 14 14 14 1 1 14 1 14 1 14 1 14 14 14 1 1 14

result:

ok OK

Test #26:

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

input:

4
NYNN

output:

YES
1 1000 2 3

result:

ok OK

Test #27:

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

input:

29
NNYNNNNNNNNYNNNNNNNNNNNNNNNNN

output:

YES
999 1000 2024 1 1 1 1 1 1 1 1 2024 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

result:

ok OK

Test #28:

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

input:

21
YYYYNYYNYYYYYNYNYNYYN

output:

YES
6 6 6 6 1 6 6 1 6 6 6 6 6 1 6 1 6 1 6 6 1

result:

ok OK

Test #29:

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

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: 3ms
memory: 3716kb

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: 2ms
memory: 3700kb

input:

9
YYYYYYNNN

output:

YES
2000 2000 2000 2000 2000 2000 999 1000 1

result:

ok OK

Test #32:

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

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: 2ms
memory: 3812kb

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: 2ms
memory: 3704kb

input:

13
NNNNYNYNNNNNN

output:

YES
999 1000 1 1 2008 1 2008 1 1 1 1 1 1

result:

ok OK

Test #35:

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

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: 2ms
memory: 3860kb

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: 2ms
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: 2ms
memory: 3808kb

input:

16
NYYYYYYNNYYNYYYY

output:

YES
1 4 4 4 4 4 4 1 1 4 4 1 4 4 4 4

result:

ok OK

Test #39:

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

input:

8
YYYNYYYY

output:

YES
1 1 1 2 1 1 1 1

result:

ok OK

Test #40:

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

input:

44
YNYNNNNNNYNNNNYNNNNNNNYNNNYYYYNYNYNNYNNNNNNN

output:

YES
32 1 32 1 1 1 1 1 1 32 1 1 1 1 32 1 1 1 1 1 1 1 32 1 1 1 32 32 32 32 1 32 1 32 1 1 32 1 1 1 1 1 1 1

result:

ok OK

Test #41:

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

input:

42
NYYYYYNNNNNNNNYNNYYYYYYNYYYYYNYYYYYYYNYYNN

output:

YES
1 16 16 16 16 16 1 1 1 1 1 1 1 1 16 1 1 16 16 16 16 16 16 1 16 16 16 16 16 1 16 16 16 16 16 16 16 1 16 16 1 1

result:

ok OK

Test #42:

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

input:

15
NYNNNNYYYNNNYYY

output:

YES
1 8 1 1 1 1 8 8 8 1 1 1 8 8 8

result:

ok OK

Test #43:

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

input:

21
NNNYNYYYYNYYNYYYNYYYY

output:

YES
999 1000 1 2004 1 2004 2004 2004 2004 1 2004 2004 1 2004 2004 2004 1 2004 2004 2004 2004

result:

ok OK

Test #44:

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

input:

23
YYYYYNYNNYNNNNYNYYNNYYN

output:

YES
2008 2008 2008 2008 2008 999 2008 1000 1 2008 1 1 1 1 2008 1 2008 2008 1 1 2008 2008 1

result:

ok OK

Test #45:

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

input:

29
YYYYYNNYYYYNNNNYYNNNYYNNYNNNN

output:

YES
2012 2012 2012 2012 2012 999 1000 2012 2012 2012 2012 1 1 1 1 2012 2012 1 1 1 2012 2012 1 1 2012 1 1 1 1

result:

ok OK

Test #46:

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

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: 1ms
memory: 3740kb

input:

4
NYYY

output:

YES
2 1 1 1

result:

ok OK

Test #48:

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

input:

39
NNYYYYYYYNYYYYYYYYYYYYYYYYYYYYYYYNYNYYY

output:

YES
999 1000 2002 2002 2002 2002 2002 2002 2002 1 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 1 2002 1 2002 2002 2002

result:

ok OK

Test #49:

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

input:

14
NNNYNNNNNNNNNN

output:

YES
1 2 3 1000 3 3 3 3 3 3 3 3 3 3

result:

ok OK

Test #50:

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

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: 1ms
memory: 3772kb

input:

30
NNNNNNNYYNYNNNNYNNNYNNNNYNNNYY

output:

YES
1 1 1 1 1 1 1 22 22 1 22 1 1 1 1 22 1 1 1 22 1 1 1 1 22 1 1 1 22 22

result:

ok OK

Test #52:

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

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: 3ms
memory: 3860kb

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: 3ms
memory: 3716kb

input:

33
YNNYNNNNNYYYYNNNNYYNYNNYNNYNNYNYN

output:

YES
20 1 1 20 1 1 1 1 1 20 20 20 20 1 1 1 1 20 20 1 20 1 1 20 1 1 20 1 1 20 1 20 1

result:

ok OK