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