Make Unreal REAL.
article thumbnail
Level 0. 커피 심부름

 

 

카페라떼가 아니면 무조건 아메리카노이다.

 

#include <iostream>
#include <vector>

using namespace std;

int solution(vector<string> order)
{
    int answer = 0;

    for (string& s : order)
        if (s.find("cafelatte") != string::npos)
            answer += 5000;
        else
            answer += 4500;

    return answer;
}
profile

Make Unreal REAL.

@diesuki4

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그