You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: b_test.go
    path of file: ./repos/codeforces-go/misc/atcoder/arc077/b
    
    the code of the file until where you have to start completion: // Code generated by copypasta/template/atcoder/generator_test.go
package main

import (
	"github.com/EndlessCheng/codeforces-go/main/testutil"
	"testing"
)

// 提交地址：https://atcoder.jp/contests/arc077/submit?taskScreenName=arc077_b
func Test_run(t *testing.T) 
    
func Test_run(t *testing.T) {
	t.Log("Current test is [b]")
	testCases := [][2]string{
		{
			`3
1 2 1 3`,
			`3
5
4
1`,
		},
		{
			`1
1 1`,
			`1
1`,
		},
		{
			`32
29 19 7 10 26 32 27 4 11 20 2 8 16 23 5 14 6 12 17 22 18 30 28 24 15 1 25 3 13 21 19 31 9`,
			`32
525
5453
40919
237336
1107568
4272048
13884156
38567100
92561040
193536720
354817320
573166440
818809200
37158313
166803103
166803103
37158313
818809200
573166440
354817320
193536720
92561040
38567100
13884156
4272048
1107568
237336
40920
5456
528
33
1`,
		},
		
	}
	testutil.AssertEqualStringCase(t, testCases, 0, run)
}