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