ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
// https://www.acmicpc.net/problem/11719
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
reader := bufio.NewReader(os.Stdin)
for i := 0; i < 100; i++ {
var input string
input, _ = reader.ReadString('\n') // ๊ณต๋ฐฑ ํฌํจํ์ฌ ์
๋ ฅ ๋ฐ๊ธฐ ์ํด ReadString() ์ฌ์ฉ
input = strings.ReplaceAll(input, "\n", "")
fmt.Println(input)
}
}
๐จ Python3
# https://www.acmicpc.net/problem/11719
import sys
if __name__ == "__main__":
for i in range(100):
input = sys.stdin.readline().rstrip("\n")
print(input)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 1024๋ฒ / ์์ด์ ํฉ [Go][Python3] (0) | 2021.01.09 |
---|---|
BOJ / 1004๋ฒ / ์ด๋ฆฐ ์์ [Go][Python3] (0) | 2021.01.08 |
BOJ / 18243๋ฒ / Small World Network [Go][Python3] (0) | 2021.01.06 |
BOJ / 11265๋ฒ / ๋๋์ง ์๋ ํํฐ [Go][Python3] (0) | 2021.01.05 |
BOJ / 11403๋ฒ / ๊ฒฝ๋ก ์ฐพ๊ธฐ [Go][Python3] (0) | 2021.01.04 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ballet
- ๋ฐ๋
- ๋ถํ ์ ๋ณต
- ์๊ณ ๋ฆฌ์ฆ
- ๋ธ๋ฃจํธํฌ์ค
- go
- dfs
- ํ๋ก์ด๋์์ฌ
- ์ด๋ถํ์
- python3
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ๋งฅ๋ถํ๋ก
- java
- BFS
- Golang
- dp
- ํด์๋งต
- ๋ฐฑ์ค
- AWS
- ๋งฅ๋ถ
- ์๋ฐ
- Algorithm
- ์๊ฐ๊ต์ฒด
- ํ
- ์คํ
- baekjoon
- Macbook pro 2012 mid 13
- BOJ
- MongoDB
- ๋ชฝ๊ณ ๋๋น
- Total
- Today
- Yesterday