[프로그래머스] C++ 숫자
물론 if 문으로 그런 식으로 해결했지만 몇 가지 다른 방법이 있었습니다. #include <string> #include <vector> using namespace std; int solution(int num1, int num2) { int answer = 0; if (num1 == num2) { return 1; } else { return -1; } } #include <string> #include <vector> using namespace std; int solution(int num1, int num2) { … Read more