ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
var n int
// use bufio for fast scan
reader := bufio.NewReader(os.Stdin)
writer := bufio.NewWriter(os.Stdout)
defer writer.Flush()
fmt.Fscanln(reader, &n)
for i := 0; i < n; i++ {
fmt.Fprintln(writer, i+1)
}
}
๐จ Python3
import sys
n = int(sys.stdin.readline())
for i in range(1, n+1):
print(i)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 11021๋ฒ / A+B - 7 [Go] [Python3] (0) | 2020.03.25 |
---|---|
BOJ / 2742๋ฒ / ๊ธฐ์ฐ N [Go] [Python3] (0) | 2020.03.24 |
BOJ / 15552๋ฒ / ๋น ๋ฅธ A+B [Go] [Python3] (0) | 2020.03.22 |
BOJ / 8393๋ฒ / ํฉ [Go] [Python3] (0) | 2020.03.21 |
BOJ / 10950๋ฒ / A+B-3 [Go] [Python3] (0) | 2020.03.20 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- baekjoon
- ๋ฐฑ์ค
- ์ด๋ถํ์
- ํ
- ํ๋ก์ด๋์์ฌ
- ์คํ
- java
- ํด์๋งต
- dp
- ๋งฅ๋ถ
- ๋ถํ ์ ๋ณต
- MongoDB
- Golang
- Macbook pro 2012 mid 13
- go
- BOJ
- ์๊ฐ๊ต์ฒด
- AWS
- ballet
- python3
- dfs
- ๋ชฝ๊ณ ๋๋น
- ์๋ฐ
- ๋ฐ๋
- ๋งฅ๋ถํ๋ก
- BFS
- ์๊ณ ๋ฆฌ์ฆ
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Algorithm
- ๋ธ๋ฃจํธํฌ์ค
- Total
- Today
- Yesterday