ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
var t, a, b int
reader := bufio.NewReader(os.Stdin)
writer := bufio.NewWriter(os.Stdout)
defer writer.Flush()
fmt.Fscanln(reader, &t)
for i := 0; i < t; i++ {
fmt.Fscanln(reader, &a, &b)
fmt.Fprintf(writer, "Case #%d: %d\n", i+1, a+b)
}
}
๐จ Python3
import sys
t = int(sys.stdin.readline())
for i in range(t):
a, b = map(int, sys.stdin.readline().split())
print('Case #%d: %d' %(i+1, a+b))
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 11022๋ฒ / A+B - 8 [Go] [Python3] (0) | 2020.03.27 |
---|---|
BOJ / 14681๋ฒ / ์ฌ๋ถ๋ฉด ๊ณ ๋ฅด๊ธฐ [Go] [Python3] (0) | 2020.03.26 |
BOJ / 2742๋ฒ / ๊ธฐ์ฐ N [Go] [Python3] (0) | 2020.03.24 |
BOJ / 2741๋ฒ / N ์ฐ๊ธฐ [Go] [Python3] (0) | 2020.03.23 |
BOJ / 15552๋ฒ / ๋น ๋ฅธ A+B [Go] [Python3] (0) | 2020.03.22 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- python3
- ๋งฅ๋ถ
- BFS
- go
- ์๊ฐ๊ต์ฒด
- ๋ฐ๋
- ์ด๋ถํ์
- java
- MongoDB
- ์๋ฐ
- ballet
- ๋ฐฑ์ค
- ์คํ
- Algorithm
- ๋งฅ๋ถํ๋ก
- baekjoon
- ํ
- BOJ
- dfs
- ๋ถํ ์ ๋ณต
- ํ๋ก์ด๋์์ฌ
- ์๊ณ ๋ฆฌ์ฆ
- ๋ธ๋ฃจํธํฌ์ค
- Macbook pro 2012 mid 13
- ํด์๋งต
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- Golang
- dp
- ๋ชฝ๊ณ ๋๋น
- AWS
- Total
- Today
- Yesterday