For problem statement at 0-999/200-299/230-239/237/problemA.txt this is a correct solution, but verifier at 0-999/200-299/230-239/237/verifierA.go ends with case 3 failed: expected 3 got 1
input:
52
10 36
9 7
19 14
23 0
2 21
4 53
7 23
0 56
21 53
23 41
15 59
2 23
4 3
12 55
18 8
6 50
2 36
23 45
10 59
3 24
23 50
15 56
6 46
7 27
2 39
21 14
15 10
0 14
23 49
18 36
9 51
7 45
18 26
6 5
12 24
15 11
6 33
2 32
11 52
0 53
22 23
16 52
7 16
15 2
23 50
16 23
14 53
23 50
2 59
2 46
4 8
22 3
exit status 1 can you fix the verifier? ```go
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
in := bufio.NewReader(os.Stdin)
var n int
fmt.Fscan(in, &n)
if n == 0 {
fmt.Println(0)
return
}
maxCashes := 1
currentCashes := 1
var lastH, lastM int
fmt.Fscan(in, &lastH, &lastM)
for i := 1; i < n; i++ {
var h, m int
fmt.Fscan(in, &h, &m)
if h == lastH && m == lastM {
currentCashes++
} else {
if currentCashes > maxCashes {
maxCashes = currentCashes
}
currentCashes = 1
lastH = h
lastM = m
}
}
if currentCashes > maxCashes {
maxCashes = currentCashes
}
fmt.Println(maxCashes)
}
```