mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1464.cpp
This commit is contained in:
parent
cd7d854697
commit
e5fc34c4d1
30
QUSTOJ/1464.cpp
Normal file
30
QUSTOJ/1464.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user