#19208: 不用用到stringstream的方法


lala1212 (wanling)

學校 : 高雄市立高雄高級中學
編號 : 57692
來源 : [223.23.189.155]
最後登入時間 :
2025-07-28 22:19:20


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

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


089487 (089487)

學校 : 國立臺灣師範大學附屬高級中學
編號 : 82069
來源 : [140.112.16.132]
最後登入時間 :
2025-04-29 20:27:54


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



其實不用這麼麻煩

while(cin>>s)就好了