알고리즘

[알고리즘] 백준 26489 - Gum Gum for Jay Jay (C++)

blueberrysoda 2025. 3. 2. 23:58

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

#include <iostream>
using namespace std;

int main(){
    string S;
    int Cnt = 0;

    while(getline(cin, S)){
        Cnt++;
    }

    cout << Cnt << "\n";

    return 0;
}