#18782: c760解答


justinli (安茲 烏爾 恭)

學校 : 臺北市立西松高級中學
編號 : 93947
來源 : [114.45.220.180]
最後登入時間 :
2024-03-10 21:10:32
c760. 蝸牛老師的點名單 (懶憜篇) -- 板橋高中Python教學題 | From: [114.44.190.217] | 發表日期 : 2019-08-05 21:14

#include<iostream>
#include<sstream>
using namespace std;

int main()
{
string s;
char a[100];
while(getline(cin,s))
{
stringstream ss(s);
while(ss>>a)
{
if(a[0]<='z'&&a[0]>='a')
a[0]-=' ';
cout<<a<<endl;
}
}
}

 
ZeroJudge Forum