QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#502691#6796. Gifted Composerucup-team1005#WA 581ms9728kbC++201.6kb2024-08-03 11:47:372024-08-03 11:47:43

詳細信息

Test #1:

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

input:

5
a do
p re
a re
a do
p do

output:

1
1
2
2
3

result:

ok 5 lines

Test #2:

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

input:

5
a re
a do
a re
p do
a mi

output:

1
1
2
2
1

result:

ok 5 lines

Test #3:

score: 0
Accepted
time: 581ms
memory: 7748kb

input:

1000000
p do
p do
p do
p do
a do
a do
a do
a do
a do
a do
a do
p do
a do
p do
p do
p do
p do
a do
p do
a do
a do
p do
p do
a do
p do
a do
p do
p do
p do
a do
a do
a do
p do
a do
a do
p do
p do
a do
p do
p do
p do
p do
p do
p do
p do
a do
a do
p do
p do
p do
p do
a do
p do
p do
p do
p do
a do
a do
a ...

output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...

result:

ok 1000000 lines

Test #4:

score: 0
Accepted
time: 444ms
memory: 7692kb

input:

1000000
a do
a re
a sol
a si
a mi
p si
a fa
a re
a mi
a do
a sol
p fa
a la
a si
a sol
p re
a mi
p do
a mi
a sol
a sol
p do
p sol
p fa
a fa
p sol
a re
a re
p do
a mi
p re
a mi
a fa
p do
p mi
p la
p sol
a si
a do
p re
a sol
a sol
a sol
a sol
a do
p la
a do
a sol
a do
p re
p fa
p mi
a sol
a re
p mi
a f...

output:

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

result:

ok 1000000 lines

Test #5:

score: -100
Wrong Answer
time: 508ms
memory: 9728kb

input:

1000000
a do
a do
a do
a re
p do
p do
a do
p do
a do
p re
a do
a re
a do
p re
a do
p do
a re
a re
p re
a re
p do
a do
a re
a do
p re
a do
p do
p re
a re
p re
p do
a do
p do
a do
a do
a do
p do
a do
a do
p do
p re
p re
a do
a re
p do
p do
p re
p do
a do
a do
a do
p re
a do
a re
a do
a do
a re
p re
a ...

output:

1
2
3
1
1
1
2
2
3
2
2
2
2
1
1
2
2
2
2
2
1
2
2
3
3
1
2
1
2
2
2
2
2
3
3
3
4
4
4
5
1
1
1
2
2
2
2
2
3
3
2
1
1
2
2
1
2
2
1
1
2
2
2
2
3
3
1
2
2
2
1
2
2
1
1
1
1
2
2
2
2
3
4
4
2
2
2
2
2
3
1
1
2
3
2
2
2
2
1
1
2
2
2
2
1
2
2
2
3
3
4
4
1
2
2
3
3
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
3
3
1
2
2
3
3
1
2
2
2
3
1
2
2
3
3
3
...

result:

wrong answer 361st lines differ - expected: '3', found: '2'