Skip to content

Instantly share code, notes, and snippets.

@SyureNyanko
Created May 6, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SyureNyanko/df2dcf0a24237c17c6c37ec061716c5d to your computer and use it in GitHub Desktop.
Save SyureNyanko/df2dcf0a24237c17c6c37ec061716c5d to your computer and use it in GitHub Desktop.
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
var scanner = bufio.NewScanner(os.Stdin)
scanner.Split(bufio.ScanRunes)
var N int
if scanner.Scan() {
N, _ = strconv.Atoi(scanner.Text())
}
var wtr = bufio.NewWriter(os.Stdout)
fmt.Fprintln(wtr, N)
_ = wtr.Flush()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment