QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#565214#1439. Football Matchucup-team1005#AC ✓16ms11624kbPython32.0kb2024-09-15 20:36:352024-09-15 20:36:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10640kb

input:

4
YNNY

output:

YES
400 201 199 400

result:

ok OK

Test #2:

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

input:

3
NNN

output:

YES
1 2003 2006

result:

ok OK

Test #3:

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

input:

4
NNNN

output:

YES
1 1 2008 2012

result:

ok OK

Test #4:

score: 0
Accepted
time: 15ms
memory: 10684kb

input:

5
NNNNN

output:

YES
1 1 1 2015 2020

result:

ok OK

Test #5:

score: 0
Accepted
time: 6ms
memory: 10700kb

input:

3
YNN

output:

YES
2000 1 1

result:

ok OK

Test #6:

score: 0
Accepted
time: 15ms
memory: 10708kb

input:

4
NNYN

output:

YES
2 1 2000 1

result:

ok OK

Test #7:

score: 0
Accepted
time: 15ms
memory: 10772kb

input:

5
NNYNN

output:

YES
3 1 2000 1 1

result:

ok OK

Test #8:

score: 0
Accepted
time: 15ms
memory: 10692kb

input:

3
YYN

output:

NO

result:

ok OK

Test #9:

score: 0
Accepted
time: 15ms
memory: 10708kb

input:

4
NNYY

output:

YES
201 199 400 400

result:

ok OK

Test #10:

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

input:

5
YNYNN

output:

YES
600 205 600 194 201

result:

ok OK

Test #11:

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

input:

3
YYY

output:

YES
1 1 1

result:

ok OK

Test #12:

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

input:

4
YYNY

output:

YES
200 200 400 200

result:

ok OK

Test #13:

score: 0
Accepted
time: 5ms
memory: 10676kb

input:

5
YYNNY

output:

YES
400 400 401 399 400

result:

ok OK

Test #14:

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

input:

4
YYYY

output:

NO

result:

ok OK

Test #15:

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

input:

5
YNYYY

output:

YES
5 3 1 1 1

result:

ok OK

Test #16:

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

input:

5
YYYYY

output:

YES
1 1 1 1 1

result:

ok OK

Test #17:

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

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: 9ms
memory: 10640kb

input:

50
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

output:

NO

result:

ok OK

Test #19:

score: 0
Accepted
time: 15ms
memory: 11624kb

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 4303 4352

result:

ok OK

Test #20:

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

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 4400 4450

result:

ok OK

Test #21:

score: 0
Accepted
time: 15ms
memory: 10648kb

input:

50
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYN

output:

YES
200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 9600

result:

ok OK

Test #22:

score: 0
Accepted
time: 16ms
memory: 10708kb

input:

49
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYNYYYYYYYYYYYYYYYYY

output:

YES
49 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 3 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: 15ms
memory: 10784kb

input:

50
NNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
48 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2000 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 #24:

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

input:

49
YNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

output:

YES
2000 47 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: 11ms
memory: 10644kb

input:

37
YNYYYYYYYYYNYNNYYNNNYYYNNYNYNYNYYYNNY

output:

YES
2800 4437 2800 2800 2800 2800 2800 2800 2800 2800 2800 4351 2800 4401 4401 2800 2800 4401 4401 4401 2800 2800 2800 4401 4401 2800 4401 2800 4401 2800 4401 2800 2800 2800 4401 4401 2800

result:

ok OK

Test #26:

score: 0
Accepted
time: 15ms
memory: 10640kb

input:

4
NYNN

output:

YES
2 2000 1 1

result:

ok OK

Test #27:

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

input:

29
NNYNNNNNNNNYNNNNNNNNNNNNNNNNN

output:

YES
229 146 5400 201 201 201 201 201 201 201 201 5400 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201

result:

ok OK

Test #28:

score: 0
Accepted
time: 15ms
memory: 10728kb

input:

21
YYYYNYYNYYYYYNYNYNYYN

output:

YES
1200 1200 1200 1200 2821 1200 1200 2775 1200 1200 1200 1200 1200 2801 1200 2801 1200 2801 1200 1200 2801

result:

ok OK

Test #29:

score: 0
Accepted
time: 15ms
memory: 10768kb

input:

12
YYYYYNYYYYYY

output:

YES
200 200 200 200 200 2000 200 200 200 200 200 200

result:

ok OK

Test #30:

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

input:

14
NYYYYYNYYYYYYY

output:

YES
2201 400 400 400 400 400 2199 400 400 400 400 400 400 400

result:

ok OK

Test #31:

score: 0
Accepted
time: 12ms
memory: 10584kb

input:

9
YYYYYYNNN

output:

YES
600 600 600 600 600 600 1009 990 1001

result:

ok OK

Test #32:

score: 0
Accepted
time: 15ms
memory: 10564kb

input:

48
NNNNYYNNYNNNNNNYNNNNNNNNNNYYNNNNNNNYNNNNNNNNNNNN

output:

YES
1248 1113 1201 1201 8200 8200 1201 1201 8200 1201 1201 1201 1201 1201 1201 8200 1201 1201 1201 1201 1201 1201 1201 1201 1201 1201 8200 8200 1201 1201 1201 1201 1201 1201 1201 8200 1201 1201 1201 1201 1201 1201 1201 1201 1201 1201 1201 1201

result:

ok OK

Test #33:

score: 0
Accepted
time: 5ms
memory: 10772kb

input:

12
YYYYNYNYNNNY

output:

YES
1000 1000 1000 1000 1212 1000 1185 1000 1201 1201 1201 1000

result:

ok OK

Test #34:

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

input:

13
NNNNYNYNNNNNN

output:

YES
213 178 201 201 2200 201 2200 201 201 201 201 201 201

result:

ok OK

Test #35:

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

input:

50
NNNNYYNYYYYNNNNYYNNYYNNNNYNNYYYYNNNNNYYYYNYYNNNYYN

output:

YES
4450 4325 4401 4401 5400 5400 4401 5400 5400 5400 5400 4401 4401 4401 4401 5400 5400 4401 4401 5400 5400 4401 4401 4401 4401 5400 4401 4401 5400 5400 5400 5400 4401 4401 4401 4401 4401 5400 5400 5400 5400 4401 5400 5400 4401 4401 4401 5400 5400 4401

result:

ok OK

Test #36:

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

input:

30
YNYNNNNYNNYNNYYNYYYYNNYNNYNNNY

output:

YES
3400 2430 3400 2355 2401 2401 2401 3400 2401 2401 3400 2401 2401 3400 3400 2401 3400 3400 3400 3400 2401 2401 3400 2401 2401 3400 2401 2401 2401 3400

result:

ok OK

Test #37:

score: 0
Accepted
time: 15ms
memory: 10652kb

input:

46
NNNNNYNNNNNNYNNNNNNNNNNNNNNNNNYNNNNNNNYNNNNNYN

output:

YES
846 715 801 801 801 8200 801 801 801 801 801 801 8200 801 801 801 801 801 801 801 801 801 801 801 801 801 801 801 801 801 8200 801 801 801 801 801 801 801 8200 801 801 801 801 801 8200 801

result:

ok OK

Test #38:

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

input:

16
NYYYYYYNNYYNYYYY

output:

YES
2216 800 800 800 800 800 800 2182 2201 800 800 2201 800 800 800 800

result:

ok OK

Test #39:

score: 0
Accepted
time: 15ms
memory: 10648kb

input:

8
YYYNYYYY

output:

YES
200 200 200 1200 200 200 200 200

result:

ok OK

Test #40:

score: 0
Accepted
time: 15ms
memory: 10684kb

input:

44
YNYNNNNNNYNNNNYNNNNNNNYNNNYYYYNYNYNNYNNNNNNN

output:

YES
6400 2244 6400 2126 2201 2201 2201 2201 2201 6400 2201 2201 2201 2201 6400 2201 2201 2201 2201 2201 2201 2201 6400 2201 2201 2201 6400 6400 6400 6400 2201 6400 2201 6400 2201 2201 6400 2201 2201 2201 2201 2201 2201 2201

result:

ok OK

Test #41:

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

input:

42
NYYYYYNNNNNNNNYNNYYYYYYNYYYYYNYYYYYYYNYYNN

output:

YES
5042 3200 3200 3200 3200 3200 4944 5001 5001 5001 5001 5001 5001 5001 3200 5001 5001 3200 3200 3200 3200 3200 3200 5001 3200 3200 3200 3200 3200 5001 3200 3200 3200 3200 3200 3200 3200 5001 3200 3200 5001 5001

result:

ok OK

Test #42:

score: 0
Accepted
time: 15ms
memory: 10672kb

input:

15
NYNNNNYYYNNNYYY

output:

YES
1215 1600 1179 1201 1201 1201 1600 1600 1600 1201 1201 1201 1600 1600 1600

result:

ok OK

Test #43:

score: 0
Accepted
time: 15ms
memory: 10672kb

input:

21
NNNYNYYYYNYYNYYYNYYYY

output:

YES
2621 2574 2601 1400 2601 1400 1400 1400 1400 2601 1400 1400 2601 1400 1400 1400 2601 1400 1400 1400 1400

result:

ok OK

Test #44:

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

input:

23
YYYYYNYNNYNNNNYNYYNNYYN

output:

YES
2200 2200 2200 2200 2200 2223 2200 2168 2201 2200 2201 2201 2201 2201 2200 2201 2200 2200 2201 2201 2200 2200 2201

result:

ok OK

Test #45:

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

input:

29
YYYYYNNYYYYNNNNYYNNNYYNNYNNNN

output:

YES
3000 3000 3000 3000 3000 2629 2558 3000 3000 3000 3000 2601 2601 2601 2601 3000 3000 2601 2601 2601 3000 3000 2601 2601 3000 2601 2601 2601 2601

result:

ok OK

Test #46:

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

input:

38
YYNNNYYYNNNYYNNNNNNYNNNNNNYYYYNNNNNNNY

output:

YES
5000 5000 2438 2339 2401 5000 5000 5000 2401 2401 2401 5000 5000 2401 2401 2401 2401 2401 2401 5000 2401 2401 2401 2401 2401 2401 5000 5000 5000 5000 2401 2401 2401 2401 2401 2401 2401 5000

result:

ok OK

Test #47:

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

input:

4
NYYY

output:

YES
400 200 200 200

result:

ok OK

Test #48:

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

input:

39
NNYYYYYYYNYYYYYYYYYYYYYYYYYYYYYYYNYNYYY

output:

YES
6639 6558 1000 1000 1000 1000 1000 1000 1000 6601 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 6601 1000 6601 1000 1000 1000

result:

ok OK

Test #49:

score: 0
Accepted
time: 5ms
memory: 10700kb

input:

14
NNNYNNNNNNNNNN

output:

YES
12 1 1 2000 1 1 1 1 1 1 1 1 1 1

result:

ok OK

Test #50:

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

input:

48
YNNNNYYYYNYYNNYYYYNNYNNYNYYYYYYNYYYYNNNNYNYNNNNN

output:

YES
4600 4848 4731 4801 4801 4600 4600 4600 4600 4801 4600 4600 4801 4801 4600 4600 4600 4600 4801 4801 4600 4801 4801 4600 4801 4600 4600 4600 4600 4600 4600 4801 4600 4600 4600 4600 4801 4801 4801 4801 4600 4801 4600 4801 4801 4801 4801 4801

result:

ok OK

Test #51:

score: 0
Accepted
time: 15ms
memory: 10812kb

input:

30
NNNNNNNYYNYNNNNYNNNYNNNNYNNNYY

output:

YES
1430 1350 1401 1401 1401 1401 1401 4400 4400 1401 4400 1401 1401 1401 1401 4400 1401 1401 1401 4400 1401 1401 1401 1401 4400 1401 1401 1401 4400 4400

result:

ok OK

Test #52:

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

input:

36
YNYYYYYNYNNNYNYYNYYNYNNYNNYYNNNYYNYN

output:

YES
3400 3636 3400 3400 3400 3400 3400 3549 3400 3601 3601 3601 3400 3601 3400 3400 3601 3400 3400 3601 3400 3601 3601 3400 3601 3601 3400 3400 3601 3601 3601 3400 3400 3601 3400 3601

result:

ok OK

Test #53:

score: 0
Accepted
time: 15ms
memory: 10648kb

input:

26
YNYYYYYYYYYNYYYNYYYYYYYYYY

output:

YES
600 4426 600 600 600 600 600 600 600 600 600 4373 600 600 600 4401 600 600 600 600 600 600 600 600 600 600

result:

ok OK

Test #54:

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

input:

33
YNNYNNNNNYYYYNNNNYYNYNNYNNYNNYNYN

output:

YES
4000 2433 2349 4000 2401 2401 2401 2401 2401 4000 4000 4000 4000 2401 2401 2401 2401 4000 4000 2401 4000 2401 2401 4000 2401 2401 4000 2401 2401 4000 2401 4000 2401

result:

ok OK