Created
May 6, 2020 08:24
-
-
Save SyureNyanko/df2dcf0a24237c17c6c37ec061716c5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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