알고리즘

[알고리즘] 백준 26068 - 치킨댄스를 추는 곰곰이를 본 임스 2 (C++)

blueberrysoda 2025. 2. 18. 23:55

[문제 링크] : https://www.acmicpc.net/problem/26068

#include <iostream>
using namespace std;

int main(){
    int N, Ans = 0;
    cin >> N;

    for(int i=0; i<N; i++){
        string S;
        cin >> S;
        int tmp = stoi(S.substr(2));
        if(tmp <= 90){
            Ans++;
        }
    }
    cout << Ans << "\n";
    return 0;
}