mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 2026.cpp
This commit is contained in:
parent
1e86f955e1
commit
c3377621ac
46
HDOJ/2026.cpp
Normal file
46
HDOJ/2026.cpp
Normal file
|
@ -0,0 +1,46 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <queue>
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
/// This Contest and Compile does not support C++11.
|
||||
//#include <thread>
|
||||
//#include <mutex>
|
||||
//#include <condition_variable>
|
||||
//#include <functional>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
//cout<<"Hello World!"<<endl;
|
||||
string s;
|
||||
while(getline(cin,s))
|
||||
{
|
||||
string temp;
|
||||
istringstream istr(s);
|
||||
ostringstream ostr;
|
||||
|
||||
while(istr>>temp)
|
||||
{
|
||||
if(temp.at(0)>='a'&&temp.at(0)<='z')
|
||||
{
|
||||
temp.at(0)=temp.at(0)-'a'+'A';
|
||||
}
|
||||
ostr<<temp<<" ";
|
||||
}
|
||||
|
||||
string ss=ostr.str();
|
||||
ss.erase(ss.end()-1);
|
||||
cout<<ss<<endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user