• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            Tha task of this problem is to count the number of words of one line.
            My solution is to insert a space into the beginning of the line.
            Here is my code:
            #include<stdio.h>
            #include
            <iostream>
            #include
            <string>
            using namespace std;
            bool letter(char c)
            {
                
            if((c>='a'&&c<='z')||(c>='A'&&c<='Z'))
                    
            return true;
                
            return false;
            }

            int ans;
            string s;

            int main()
            {
                
            /*
                freopen("data.in","r",stdin);
                freopen("data.out","w",stdout);
                //
            */

                
            while(getline(cin,s))
                {
                    ans
            =0;
                    s.insert(
            0," ");
                    
            for(int i=0;i<s.length()-1;i++)
                        
            if(!letter(s[i])&&letter(s[i+1]))
                            ans
            ++;
                    cout
            <<ans<<endl;
                }
            return 0;
            }
            posted on 2011-01-23 16:51 lee1r 閱讀(439) 評論(0)  編輯 收藏 引用 所屬分類: 題目分類:基礎/模擬
            国产99久久久国产精免费| 亚洲AV无码久久精品成人| 成人午夜精品久久久久久久小说| 狠色狠色狠狠色综合久久| 久久精品二区| 欧美亚洲色综久久精品国产| 久久中文字幕一区二区| 久久婷婷五月综合97色直播| 国内精品久久久人妻中文字幕| 久久国产三级无码一区二区| 久久亚洲欧美国产精品| 久久精品亚洲欧美日韩久久| 久久精品国产亚洲AV电影 | 久久99久久无码毛片一区二区| 久久受www免费人成_看片中文| 97久久精品午夜一区二区| 无码人妻久久一区二区三区蜜桃| 97久久精品午夜一区二区| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 久久精品国产AV一区二区三区| 色成年激情久久综合| 久久精品人人做人人妻人人玩| 亚洲欧美一区二区三区久久| 国产成人综合久久精品尤物| 国产亚洲综合久久系列| 亚洲色大成网站WWW久久九九| 日本高清无卡码一区二区久久 | 曰曰摸天天摸人人看久久久| 亚洲中文字幕久久精品无码喷水| 日产久久强奸免费的看| 久久强奷乱码老熟女| 国产精品永久久久久久久久久| 久久综合综合久久狠狠狠97色88| 国产成人综合久久综合| 99久久中文字幕| 久久精品免费一区二区三区| 国产一级持黄大片99久久| 久久精品国产亚洲综合色| 久久精品成人免费网站| 亚洲乱亚洲乱淫久久| 国产精久久一区二区三区|