mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
31 lines
436 B
C++
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;
|
|
}
|