ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
var n int
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, n-i)
}
}
๐จ Python3
import sys
n = int(sys.stdin.readline())
for i in range(n):
print(n-i)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 14681๋ฒ / ์ฌ๋ถ๋ฉด ๊ณ ๋ฅด๊ธฐ [Go] [Python3] (0) | 2020.03.26 |
---|---|
BOJ / 11021๋ฒ / A+B - 7 [Go] [Python3] (0) | 2020.03.25 |
BOJ / 2741๋ฒ / N ์ฐ๊ธฐ [Go] [Python3] (0) | 2020.03.23 |
BOJ / 15552๋ฒ / ๋น ๋ฅธ A+B [Go] [Python3] (0) | 2020.03.22 |
BOJ / 8393๋ฒ / ํฉ [Go] [Python3] (0) | 2020.03.21 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ๋ถํ ์ ๋ณต
- ๋ชฝ๊ณ ๋๋น
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Golang
- ์ด๋ถํ์
- ์คํ
- ์๊ฐ๊ต์ฒด
- go
- ๋งฅ๋ถํ๋ก
- dp
- ballet
- BFS
- ํ๋ก์ด๋์์ฌ
- ํด์๋งต
- ์๊ณ ๋ฆฌ์ฆ
- ๋ฐฑ์ค
- ๋ฐ๋
- Algorithm
- ๋ธ๋ฃจํธํฌ์ค
- baekjoon
- python3
- ํ
- Macbook pro 2012 mid 13
- ์๋ฐ
- java
- MongoDB
- AWS
- ๋งฅ๋ถ
- BOJ
- dfs
- Total
- Today
- Yesterday