QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#533702#6796. Gifted Composerrotcar08WA 400ms62068kbC++201.3kb2024-08-26 11:04:062024-08-26 11:04:06

詳細信息

Test #1:

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

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

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: 400ms
memory: 61308kb

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: -100
Wrong Answer
time: 356ms
memory: 62068kb

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

result:

wrong answer 11th lines differ - expected: '1', found: '2'