ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
var a, b int
reader := bufio.NewReader(os.Stdin)
writer := bufio.NewWriter(os.Stdout)
defer writer.Flush()
for true {
val, _ := fmt.Fscanln(reader, &a, &b)
if val != 2 {
break
}
fmt.Fprintln(writer, a+b)
}
}
๐จ Python3
import sys
while True:
try:
a, b = map(int, sys.stdin.readline().split())
except:
break
print(a+b)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 10039๋ฒ / ํ๊ท ์ ์ [Go] [Python3] (0) | 2020.04.03 |
---|---|
BOJ / 1110๋ฒ / ๋ํ๊ธฐ ์ฌ์ดํด [Go] [Python3] (0) | 2020.04.02 |
BOJ / 10952๋ฒ / A+B - 5 [Go] [Python3] (0) | 2020.03.31 |
BOJ / 10871๋ฒ / X๋ณด๋ค ์์ ์ [Go] [Python3] (0) | 2020.03.30 |
BOJ / 2439๋ฒ / ๋ณ ์ฐ๊ธฐ - 2 [Go] [Python3] (0) | 2020.03.29 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- ballet
- ํ๋ก์ด๋์์ฌ
- ๋ถํ ์ ๋ณต
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- ๋งฅ๋ถํ๋ก
- ๋ธ๋ฃจํธํฌ์ค
- ์ด๋ถํ์
- ์๋ฐ
- dfs
- ์คํ
- ํด์๋งต
- ๋ฐ๋
- ๋งฅ๋ถ
- BOJ
- java
- ๋ชฝ๊ณ ๋๋น
- ์๊ฐ๊ต์ฒด
- BFS
- Macbook pro 2012 mid 13
- AWS
- go
- baekjoon
- python3
- ์๊ณ ๋ฆฌ์ฆ
- ํ
- dp
- Golang
- ๋ฐฑ์ค
- MongoDB
- Algorithm
- Total
- Today
- Yesterday