Solution - UVa Problem 494 - Kindergarten Counting Game



আলোচনাঃ


সল্যুশন্সঃ
#include<bits/stdc++.h>
using namespace std;
int main(){
    char s[10000];
    int cnt=0;
    bool w = false;
    while(gets(s)){
        for(int j=0; s[j]; j++){
            if(s[j]>='a' && s[j]<='z' || s[j]>='A' && s[j]<='Z'){
                w = true;
            }
            else {
                if(w==true){
                    cnt++;
                    w = false;
                }
            }
        }
        cout << cnt << endl;
        cnt = 0;
    }
    return 0;
}

Comments

  1. Casino | DMC
    A complete guide on the best sites and gambling apps available on mobile and desktop. Discover the best casinos 밀양 출장마사지 and get their bonuses today!‎Mobile · 경상북도 출장샵 ‎Deposit Methods · 하남 출장안마 ‎How 양주 출장샵 To 김제 출장샵 · ‎How To · ‎Gaming

    ReplyDelete

Post a Comment

Popular posts from this blog

Solution - Timus Problem 1293. Eniya

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1409. Two Gangsters