25 lines
294 B
Go
25 lines
294 B
Go
package main
|
|
|
|
import (
|
|
"bufio"
|
|
"fmt"
|
|
"math"
|
|
"os"
|
|
"strconv"
|
|
)
|
|
|
|
func main() {
|
|
count := 0
|
|
lastValue := math.MaxInt64
|
|
|
|
s := bufio.NewScanner(os.Stdin)
|
|
for s.Scan() {
|
|
value, _ := strconv.Atoi(s.Text())
|
|
if value > lastValue {
|
|
count++
|
|
}
|
|
lastValue = value
|
|
}
|
|
|
|
fmt.Println(count)
|
|
}
|