-
Notifications
You must be signed in to change notification settings - Fork 674
/
Copy pathp2596_test.go
69 lines (67 loc) · 813 Bytes
/
p2596_test.go
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
package main
import (
"github.com/EndlessCheng/codeforces-go/main/testutil"
"testing"
)
func Test_p2586(t *testing.T) {
samples := [][2]string{
{
`3 5
1 1 2
2 2
5`,
`The game is going on
5
5 1 3 1 4
4 1 3 0 4
3 1 3 0 3
2 1 3 0 2
1 1 4 0 1`,
},
{
`3 3 0 0 0 1000`,
`Game over after 57 seconds
6
56 1 4 0 0
55 1 4 2 1
54 1 4 3 1
53 1 4 3 3
52 1 4 2 3
51 1 4 1 2`,
},
{
`4 4 1 10 3
2 1 1000`,
`Game over after 579 seconds
6
58 31 46 1 1
40 32 6 0 0
30 32 64 3 1
17 32 74 3 3
13 32 44 2 0
9 32 84 2 4`,
},
{
`4 4 1 1 1
1 1 50`,
`The game is going on
6
50 1 2 4 3
49 1 0 3 4
48 1 2 4 2
47 1 1 4 1
46 1 1 1 4
45 1 0 1 0`,
},
{
`2 2 1 1 1
1 1 3`,
`The game is going on
3
3 1 2 1 2
2 1 3 0 2
1 1 4 0 1`,
},
}
testutil.AssertEqualStringCase(t, samples, 0, p2586)
}