(백준) 18408 – つの整数 (Three Integers) (C++)
문제 https://www.acmicpc.net/problem/18408 18408:3츠의 수(3정수) 3 つの整数 A, B, C が与えられる A, B, C そレぞれ 1 Mataha 2 Dearu. www.acmicpc.net 설명 3개의 정수를 받아 1이 더 있는지 2가 더 있는지를 출력하는 문제입니다.count 함수를 사용하기 위해 입력을 벡터로 취했습니다. #include <iostream> #include <regex> using namespace std; int main() { vector<int> v(3); for (int i = 0; i … Read more