Create 1464.cpp

This commit is contained in:
KiritoTRw 2016-04-27 18:37:50 +08:00
parent cd7d854697
commit e5fc34c4d1

30
QUSTOJ/1464.cpp Normal file
View File

@ -0,0 +1,30 @@
#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;
}