QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#724575#9535. Arrow a Rowucup-team5770#AC ✓30ms4444kbC++141.9kb2024-11-08 13:50:092024-11-08 13:50:10

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
>>->>>
>>>->
>>>>>
>->>>>>>

output:

Yes 4
1 5
2 5
2 5
2 5
No
No
Yes 5
1 5
4 5
3 5
1 5
1 5

result:

ok ok (4 test cases)

Test #2:

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

input:

126
>->-->>>>
>--->->>>>
>--->-->>>
>>-->->>>
>>-->>>>>
>>->->>>>
>>->>->>>>
>-->->->>>
>->->>>>>>
>->>>
>->->>>>>
>>>->->>>
>>->>>>>>>
>>>>>->>>
>->>>->>>
>>--->->>>
>>->>>>
>->>>>->>>
>>>>-->>>
>---->>>
>>>---->>>
>>>>->>>>
>->>-->>>
>-->-->>>>
>>---->>>
>>--->>>
>->>>-->>>
>>-->>>>
>>---->>>>
>>-...

output:

Yes 7
1 5
5 5
2 5
3 5
1 5
1 5
3 6
Yes 7
1 5
6 5
3 5
3 5
1 5
1 7
5 5
Yes 7
1 5
6 5
3 5
3 5
1 5
1 7
5 6
Yes 7
1 5
2 5
5 5
4 5
2 5
2 6
5 5
Yes 6
1 5
2 5
5 5
4 5
2 5
2 6
Yes 7
1 5
2 5
5 5
4 5
2 5
2 5
4 5
Yes 8
1 5
2 5
6 5
3 5
4 5
2 5
2 5
5 5
Yes 8
1 5
6 5
3 5
3 5
1 5
1 6
4 5
6 5
Yes 7
1 5
6 5
3 5
3 5
1 ...

result:

ok ok (126 test cases)

Test #3:

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

input:

4032
>>--->>>>>>>>
>->>->->-->->>>
>>--->>--->>>
>>->->->>>>>>>>
>->---->->>>
>->>->>---->>>>
>>>>>>>>->>>>
>->>>--->>>->>>
>->>->>-->>>>>>
>->>-->---->>>
>-->--->>>->>>
>->---->>-->>>>
>>------>>>
>>>-->>--->>>>>
>->->->>-->>>>
>->->-->>->->>>
>>->>>>-->->>>>
>>>-->>->--->>>
>->->>>>>->>>>
>>-->->>...

output:

Yes 8
1 5
2 5
9 5
6 5
3 5
4 5
2 5
2 7
Yes 12
1 5
11 5
8 5
5 5
2 5
3 5
1 5
1 5
4 5
6 5
8 6
11 5
Yes 9
1 5
2 5
9 5
6 5
3 5
4 5
2 5
2 7
7 7
Yes 10
1 5
2 5
11 5
8 5
5 5
4 5
2 5
2 5
4 5
6 5
Yes 9
1 5
8 5
5 5
2 5
3 5
1 5
1 5
3 8
8 5
Yes 10
1 5
11 5
8 5
5 5
2 5
3 5
1 5
1 5
4 5
7 8
Yes 11
1 5
2 5
3 5
4 5
5 ...

result:

ok ok (4032 test cases)

Test #4:

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

input:

10000
>>>>->->>->>->>>>
>->-->>->>->>>>>>
>->->>-->--->>>>>
>---->-->->>>>>>>
>->-->>--->>->>>>
>->>->>>>>>-->>>
>>--->->-->>->>>
>-->---->>>->>>
>->----->->->>>>>
>>--->---->-->>>>
>>-->->->--->>>
>----->>-->>->>>>
>-->->->>>>>->>>>
>>->>---->-->>>
>>->>-->>>-->>>
>------>->>>->>>>
>->->-->->>>->>>...

output:

Yes 13
1 5
2 5
3 5
4 5
13 5
10 5
7 5
6 5
4 5
4 5
6 5
9 5
12 5
Yes 11
1 5
13 5
10 5
7 5
4 5
3 5
1 5
1 5
3 6
7 5
10 5
Yes 11
1 5
13 5
10 5
7 5
4 5
3 5
1 5
1 5
3 5
6 6
9 7
Yes 10
1 5
13 5
10 5
7 5
4 5
3 5
1 5
1 8
6 6
9 5
Yes 11
1 5
13 5
10 5
7 5
4 5
3 5
1 5
1 5
3 6
7 7
12 5
Yes 10
1 5
12 5
9 5
6 5
3 5
...

result:

ok ok (10000 test cases)

Test #5:

score: 0
Accepted
time: 26ms
memory: 3504kb

input:

10000
>>>-->>>>-->---->->->-->>>
>>-->>>>->-->>->>>
>->-->--->--->->-->>--->>->->>-->->->>>>>>->>>>----->->--->>----->>-->>>----->->->>>--->>->>-->->->->---->>->>>-->>->->>>->->>>>->>->->>-->>>->>->>-->>>>-->>-->>>->>->->>>--->>>-->>>--->>->->>>>>->->---->>>>->>>
->->>>>--->>>>>>->>>->>>>->->-->-->>...

output:

Yes 18
1 5
2 5
3 5
22 5
19 5
16 5
13 5
10 5
7 5
4 5
5 5
3 5
3 6
9 6
12 8
17 5
19 5
21 6
Yes 12
1 5
2 5
14 5
11 5
8 5
5 5
4 5
2 5
2 6
8 5
10 6
14 5
Yes 127
1 5
207 5
204 5
201 5
198 5
195 5
192 5
189 5
186 5
183 5
180 5
177 5
174 5
171 5
168 5
165 5
162 5
159 5
156 5
153 5
150 5
147 5
144 5
141 5
138...

result:

ok ok (10000 test cases)

Test #6:

score: 0
Accepted
time: 30ms
memory: 3616kb

input:

9999
->->--->>>>->->--->>--
->>>--->>>-->>--->>---
-->>>>>>>-
>>>->>>>>>>--
>>-->-->->----->->>>>->>->---->->
>-->->>>--->->->>->->-
>->--->--->>>>->>>----->------>>-->->>>
>>->>>->>>---->>>->>>>>>>>>->--->>->>>>>-->>>->->->>-->->--->->-->->>->->->>-->-->>>>>>>>--->>--->->>>-->->----->>-->->>--->-->...

output:

No
No
No
No
No
No
Yes 23
1 5
35 5
32 5
29 5
26 5
23 5
20 5
17 5
14 5
11 5
8 5
5 5
2 5
3 5
1 5
1 5
3 7
7 7
14 5
18 9
24 10
32 6
35 5
Yes 77
1 5
2 5
125 5
122 5
119 5
116 5
113 5
110 5
107 5
104 5
101 5
98 5
95 5
92 5
89 5
86 5
83 5
80 5
77 5
74 5
71 5
68 5
65 5
62 5
59 5
56 5
53 5
50 5
47 5
44 5
41 5...

result:

ok ok (9999 test cases)

Test #7:

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

input:

5
>-->>>>>--->->->>->>>>>->->-->-->->>>-->->--->>>------>->>-->>>------->>---->-->>>>>>-->>--->>-->->->>>>->-->------>>->>>>->>>-->---->--->>-->-->->--->->->->->>->-->->--->>>>->>->--->->>-->>>>>>->>>>->>--->->>-->>->->---->>>->->>->>->--->->->-->->>->->-->->------>>>->>>>>->>-->>->>>->>>>>----->---...

output:

No
No
Yes 55876
1 5
2 5
3 5
95944 5
95941 5
95938 5
95935 5
95932 5
95929 5
95926 5
95923 5
95920 5
95917 5
95914 5
95911 5
95908 5
95905 5
95902 5
95899 5
95896 5
95893 5
95890 5
95887 5
95884 5
95881 5
95878 5
95875 5
95872 5
95869 5
95866 5
95863 5
95860 5
95857 5
95854 5
95851 5
95848 5
95845 5
...

result:

ok ok (5 test cases)

Test #8:

score: 0
Accepted
time: 23ms
memory: 4444kb

input:

5
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

output:

No
Yes 99998
1 5
2 5
3 5
4 5
5 5
6 5
7 5
8 5
9 5
10 5
11 5
12 5
13 5
14 5
15 5
16 5
17 5
18 5
19 5
20 5
21 5
22 5
23 5
24 5
25 5
26 5
27 5
28 5
29 5
30 5
31 5
32 5
33 5
34 5
35 5
36 5
37 5
38 5
39 5
40 5
41 5
42 5
43 5
44 5
45 5
46 5
47 5
48 5
49 5
50 5
51 5
52 5
53 5
54 5
55 5
56 5
57 5
58 5
59 5
6...

result:

ok ok (5 test cases)

Test #9:

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

input:

20
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

output:

Yes 15867
1 5
2 5
3 5
4 5
5 5
6 5
7 5
8 5
9 5
10 5
11 5
12 5
13 5
14 5
15 5
16 5
17 5
18 5
19 5
20 5
21 5
22 5
23 5
24 5
25 5
26 5
27 5
28 5
29 5
30 5
31 5
32 5
33 5
34 5
35 5
36 5
37 5
38 5
39 5
40 5
41 5
42 5
43 5
44 5
45 5
46 5
47 5
48 5
49 5
50 5
51 5
52 5
53 5
54 5
55 5
56 5
57 5
58 5
59 5
60 5...

result:

ok ok (20 test cases)

Test #10:

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

input:

20
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...

output:

Yes 9854
1 5
2 5
3 5
4 5
5 5
6 5
7 5
8 5
9 5
10 5
11 5
12 5
13 5
14 5
15 5
16 5
17 5
18 5
19 5
20 5
21 5
22 5
23 5
24 5
25 5
26 5
27 5
28 5
29 5
30 5
31 5
32 5
33 5
34 5
35 5
36 5
37 5
38 5
39 5
40 5
41 5
42 5
43 5
44 5
45 5
46 5
47 5
48 5
49 5
50 5
51 5
52 5
53 5
54 5
55 5
56 5
57 5
58 5
59 5
60 5
...

result:

ok ok (20 test cases)

Extra Test:

score: 0
Extra Test Passed