ํฐ์คํ ๋ฆฌ ๋ทฐ
๐ฉ๐ป๐ป ๋ฌธ์
โ๐ป ํ์ด
๐จ Go
package main
import (
"fmt"
)
func main() {
var count int
fmt.Scanf("%d", &count)
var mat = make([][]int, count)
for i := range mat {
mat[i] = make([]int, 2)
}
for i:=0; i<count; i++ {
fmt.Scanf("%d %d", &mat[i][0], &mat[i][1])
}
for i:=0; i<count; i++ {
fmt.Println(mat[i][0]+mat[i][1])
}
}
๐จ Python3
import sys
t = int(sys.stdin.readline())
result = []
for i in range(t):
a, b = map(int, sys.stdin.readline().split())
print(a+b)
728x90
'dev > algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ / 15552๋ฒ / ๋น ๋ฅธ A+B [Go] [Python3] (0) | 2020.03.22 |
---|---|
BOJ / 8393๋ฒ / ํฉ [Go] [Python3] (0) | 2020.03.21 |
BOJ / 2739๋ฒ / ๊ตฌ๊ตฌ๋จ [Go] [Python3] (0) | 2020.03.19 |
BOJ / 2884๋ฒ / ์๋ ์๊ณ [Go] [Python3] (0) | 2020.03.18 |
BOJ / 2753๋ฒ / ์ค๋ [Go] [Python3] (0) | 2020.03.17 |
๋๊ธ
๊ธ ๋ณด๊ดํจ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
TAG
- AWS
- ์คํ
- baekjoon
- ๋ธ๋ฃจํธํฌ์ค
- ๋ชฝ๊ณ ๋๋น
- Macbook pro 2012 mid 13
- ๋ฐฑ์ค
- ๋งฅ๋ถํ๋ก
- ์ด๋ถํ์
- Golang
- MongoDB
- ํด์๋งต
- ์๊ฐ๊ต์ฒด
- java
- ํ
- go
- Algorithm
- ๋ถํ ์ ๋ณต
- ์๊ณ ๋ฆฌ์ฆ
- ๋งฅ๋ถ ์ ๊ทธ๋ ์ด๋
- BOJ
- dp
- ballet
- BFS
- dfs
- ๋ฐ๋
- python3
- ์๋ฐ
- ๋งฅ๋ถ
- ํ๋ก์ด๋์์ฌ
- Total
- Today
- Yesterday