항해 99 ! Day 1/ 프로그래머스 / 12916/ 중첩 삼항 연산자 (Nested Ternary Operator)
https://school.programmers.co.kr/learn/courses/30/lessons/12916 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr #include #include #include using namespace std;bool solution(string s){ bool answer = true; int cntp = 0; int cnty = 0; for (int i = 0; i 좀 멀리 돌아간 느낌 #include bool solution(std::string s) { int count = 0; for (auto c : s) co..
cote
2025. 1. 13. 17:09