#19208: 不用用到stringstream的方法


lala1212 (wanling)

學校 : 高雄市立高雄高級中學
編號 : 57692
來源 : [140.112.24.39]
最後登入時間 :
2024-04-07 16:03:27
d430. 第二題: 計算字數 (count) -- 92學年度北基區資訊學科能力競賽 | From: [61.223.111.148] | 發表日期 : 2019-09-14 23:13


ll ans=0;
string s;
while(cin>>s)
for(auto i:s) if(_____________) {ans++;break;}
cout<<ans<<"\n";

 
#19673: Re:不用用到stringstream的方法


089487 (089487)

學校 : 國立臺灣師範大學附屬高級中學
編號 : 82069
來源 : [220.130.10.185]
最後登入時間 :
2024-04-01 11:16:18
d430. 第二題: 計算字數 (count) -- 92學年度北基區資訊學科能力競賽 | From: [223.136.162.182] | 發表日期 : 2019-10-19 17:01


ll ans=0;
string s;
while(cin>>s)
for(auto i:s) if(_____________) {ans++;break;}
cout<<ans<<"\n";



其實不用這麼麻煩

while(cin>>s)就好了

 
ZeroJudge Forum