ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 10950번
    백준알고리즘/입출력 2020. 10. 1. 21:36
    #include<iostream>
    #include<vector>
    using namespace std;
    int main(void)
    {
    	int A = 0;
    	int B = 0;
    	int N = 0;
    	cin >> N;
    	vector<int> arr(N);
    	for (int i = 0; i < N; i++)
    	{
    		cin >> A >> B;	
    		arr[i] = A + B;
    	}
    	for (int i = 0; i < N; i++)
    	{
    		cout << arr[i] << endl;
    	}
    }

    '백준알고리즘 > 입출력' 카테고리의 다른 글

    10952번  (0) 2020.10.01
    10951번  (0) 2020.10.01
    2558번  (0) 2020.10.01
    1000번  (0) 2020.10.01
    2557번  (0) 2020.10.01
Designed by Tistory.