ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ 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
- ๋ฐ๋
- MongoDB
- BFS
- python3
- ๋งฅ๋ถํ๋ก
- dp
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Golang
- AWS
- BOJ
- ์๊ฐ๊ต์ฒด
- ์ด๋ถํ์
- java
- ๋งฅ๋ถ
- ballet
- go
- dfs
- ๋ชฝ๊ณ ๋๋น
- ์๊ณ ๋ฆฌ์ฆ
- ์คํ
- baekjoon
- ํด์๋งต
- Algorithm
- Macbook pro 2012 mid 13
- ํ๋ก์ด๋์์ฌ
- ํ
- ๋ถํ ์ ๋ณต
- ๋ธ๋ฃจํธํฌ์ค
- ์๋ฐ
- ๋ฐฑ์ค
- Total
- Today
- Yesterday