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