ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ

 

10950๋ฒˆ: A+B - 3

๋‘ ์ •์ˆ˜ A์™€ B๋ฅผ ์ž…๋ ฅ๋ฐ›์€ ๋‹ค์Œ, A+B๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

www.acmicpc.net


โœ๐Ÿป ํ’€์ด

๐ŸŽจ 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
๋Œ“๊ธ€