QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#504097#7667. Crane Balancingxiaowuc1AC ✓45ms40396kbJava84.5kb2024-08-04 05:52:542024-08-04 05:52:54

详细

Test #1:

score: 100
Accepted
time: 38ms
memory: 37704kb

input:

7
50 50
0 50
0 0
30 0
30 30
40 40
50 40

output:

0 .. 1017

result:

ok single line: '0 .. 1017'

Test #2:

score: 0
Accepted
time: 37ms
memory: 37028kb

input:

7
50 50
0 50
0 0
10 0
10 30
20 40
50 40

output:

unstable

result:

ok single line: 'unstable'

Test #3:

score: 0
Accepted
time: 29ms
memory: 37148kb

input:

4
-10 10
-10 0
0 0
0 10

output:

0 .. inf

result:

ok single line: '0 .. inf'

Test #4:

score: 0
Accepted
time: 39ms
memory: 37208kb

input:

7
50 30
50 25
30 20
30 0
0 0
0 20
20 20

output:

0 .. 409

result:

ok single line: '0 .. 409'

Test #5:

score: 0
Accepted
time: 42ms
memory: 37004kb

input:

7
-50 25
-30 20
-30 0
0 0
0 20
-20 20
-50 30

output:

0 .. 409

result:

ok single line: '0 .. 409'

Test #6:

score: 0
Accepted
time: 29ms
memory: 37240kb

input:

8
100 100
100 110
50 110
50 50
0 50
0 0
60 0
60 100

output:

0 .. 2125

result:

ok single line: '0 .. 2125'

Test #7:

score: 0
Accepted
time: 25ms
memory: 37040kb

input:

6
10 50
100 50
100 60
0 60
0 0
10 0

output:

unstable

result:

ok single line: 'unstable'

Test #8:

score: 0
Accepted
time: 37ms
memory: 37080kb

input:

6
0 60
0 0
10 0
10 50
100 50
100 60

output:

3750 .. inf

result:

ok single line: '3750 .. inf'

Test #9:

score: 0
Accepted
time: 45ms
memory: 36940kb

input:

7
-100 100
-10 60
-20 0
0 10
20 0
10 60
100 100

output:

0 .. 1500

result:

ok single line: '0 .. 1500'

Test #10:

score: 0
Accepted
time: 38ms
memory: 38208kb

input:

8
50 50
-100 50
-100 40
0 40
0 0
10 0
10 40
50 40

output:

710 .. 1363

result:

ok single line: '710 .. 1363'

Test #11:

score: 0
Accepted
time: 33ms
memory: 37236kb

input:

8
-300 500
-100 0
0 200
100 0
300 500
100 200
0 400
-100 200

output:

0 .. 40000

result:

ok single line: '0 .. 40000'

Test #12:

score: 0
Accepted
time: 33ms
memory: 38572kb

input:

10
-400 800
200 400
100 200
0 400
-100 200
-300 500
-100 0
0 200
100 0
300 500

output:

0 .. 53889

result:

ok single line: '0 .. 53889'

Test #13:

score: 0
Accepted
time: 42ms
memory: 38220kb

input:

16
1000 1000
1000 1100
-2000 1100
-2000 1
0 1
0 0
10 0
10 1
100 1
100 0
110 0
110 1
200 1
200 0
210 0
210 1000

output:

2125968 .. 3357736

result:

ok single line: '2125968 .. 3357736'

Test #14:

score: 0
Accepted
time: 45ms
memory: 37040kb

input:

60
32 25
29 32
25 25
25 22
22 22
22 25
20 25
20 20
23 17
23 10
16 10
9 10
12 12
14 15
12 17
19 17
15 25
15 20
10 20
7 25
0 20
6 20
5 15
5 11
0 15
0 10
0 5
3 0
7 4
5 7
5 10
12 7
10 4
11 2
12 0
15 0
15 3
13 3
13 7
17 7
20 3
20 2
20 0
25 3
30 0
30 3
30 5
27 5
24 7
24 12
27 12
27 9
30 9
30 13
30 16
27 1...

output:

0 .. 2911

result:

ok single line: '0 .. 2911'

Test #15:

score: 0
Accepted
time: 39ms
memory: 38336kb

input:

62
32 25
29 32
25 25
25 22
22 22
22 25
20 25
20 20
23 17
23 10
16 10
9 10
12 12
14 12
12 17
19 17
15 25
15 20
10 20
7 25
0 20
6 20
5 15
5 11
0 15
-100 15
-100 10
0 10
0 5
3 0
7 4
5 7
5 10
12 7
10 4
11 2
12 0
15 0
15 3
13 3
13 7
17 7
20 3
20 2
20 0
25 3
30 0
30 3
30 5
27 5
24 7
24 12
27 12
27 9
30 9
...

output:

735 .. 22911

result:

ok single line: '735 .. 22911'

Test #16:

score: 0
Accepted
time: 37ms
memory: 37012kb

input:

62
-100 10
0 10
0 5
3 0
7 4
5 7
5 10
12 7
10 4
11 2
12 0
15 0
15 3
13 3
13 7
17 7
20 3
20 2
20 0
25 3
30 0
30 3
30 5
27 5
24 7
24 12
27 12
27 9
30 9
30 13
30 16
27 16
27 14
25 14
25 17
25 19
32 25
29 32
25 25
25 22
22 22
22 25
20 25
20 20
23 17
23 10
16 10
9 10
12 12
14 12
12 17
19 17
15 25
15 20
10...

output:

unstable

result:

ok single line: 'unstable'

Test #17:

score: 0
Accepted
time: 37ms
memory: 40396kb

input:

62
-10 10
0 10
0 5
3 0
7 4
5 7
5 10
12 7
10 4
11 2
12 0
15 0
15 3
13 3
13 7
17 7
20 3
20 2
20 0
25 3
30 0
30 3
30 5
27 5
24 7
24 12
27 12
27 9
30 9
30 13
30 16
27 16
27 14
25 14
25 17
25 19
32 25
29 32
25 25
25 22
22 22
22 25
20 25
20 20
23 17
23 10
16 10
9 10
12 12
14 11
12 17
19 17
15 25
15 20
10 ...

output:

0 .. 368

result:

ok single line: '0 .. 368'

Test #18:

score: 0
Accepted
time: 43ms
memory: 37836kb

input:

12
11 4
11 5
7 5
7 9
6 9
6 5
2 5
2 4
6 4
6 0
7 0
7 4

output:

0 .. 3

result:

ok single line: '0 .. 3'

Test #19:

score: 0
Accepted
time: 36ms
memory: 38040kb

input:

12
11 4
11 5
7 5
7 9
6 9
6 5
2 5
2 1
6 1
6 0
7 0
7 4

output:

3 .. 12

result:

ok single line: '3 .. 12'

Test #20:

score: 0
Accepted
time: 45ms
memory: 37112kb

input:

7
1500 100
0 1
-2000 100
-1 1
-1 0
1 0
1 1

output:

5 .. 6

result:

ok single line: '5 .. 6'

Test #21:

score: 0
Accepted
time: 43ms
memory: 38256kb

input:

100
21 18
18 18
18 16
16 16
15 15
17 15
16 13
13 13
13 15
15 17
15 18
12 18
12 16
11 14
11 10
7 10
7 13
5 15
7 18
4 18
3 16
3 14
0 8
1 8
1 3
0 1
0 0
1 0
1 1
2 2
3 2
2 1
2 0
3 1
4 2
4 3
3 4
3 3
2 3
2 5
4 5
5 4
5 3
6 2
5 1
5 0
8 0
7 1
7 2
8 3
7 4
6 4
7 5
7 6
8 6
8 5
9 5
10 6
10 4
9 3
10 2
9 1
10 0
11 ...

output:

0 .. 2018

result:

ok single line: '0 .. 2018'