OJ-Problems-Source/QUSTOJ/1464.cpp
2016-04-27 18:37:50 +08:00

31 lines
436 B
C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
char a[1024];
char b[1024];
int main()
{
while(gets(a)!=NULL)
{
if(strlen(a)<1)
{
continue;
}
int i=0,j=0;
while(a[i]!=0)
{
if(a[i]!=' ')
{
b[j++]=a[i];
}
++i;
}
b[j]=0;
puts(b);
}
return 0;
}