From e5fc34c4d1b2358ea6facf8f81e5d644d8584926 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Wed, 27 Apr 2016 18:37:50 +0800 Subject: [PATCH] Create 1464.cpp --- QUSTOJ/1464.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 QUSTOJ/1464.cpp diff --git a/QUSTOJ/1464.cpp b/QUSTOJ/1464.cpp new file mode 100644 index 0000000..e125818 --- /dev/null +++ b/QUSTOJ/1464.cpp @@ -0,0 +1,30 @@ +#include +#include +#include +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; +}