[백준] #10951 문자 개수 모를 때 입력 받기 c++
2022. 12. 21. 14:19
https://www.acmicpc.net/problem/10951
백준
문자열 개수를 모를 때 입력 받는 방법은 다음과 같다.
#include <iostream>
int main()
{
int a,b;
while (std::cin >> a >> b) {
std::cout << a+b << std::endl;
}
return 0;
}
'Programming > Algorithm' 카테고리의 다른 글
[백준] #5597 과제 안 내신 분..? python (0) | 2022.12.21 |
---|---|
[백준] #1110 std::stoi c++ (0) | 2022.12.21 |
[백준] #10952 while(true) c++ (0) | 2022.12.21 |
Greedy Algorithm python (0) | 2022.12.05 |
[백준] #1541 Greedy Algorithm python (0) | 2022.12.05 |