From 0861409864d86a74c63cf202502574bdfe10fdc1 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 28 Apr 2016 09:18:43 +0800 Subject: [PATCH] Create 1312.cpp --- QUSTOJ/1312.cpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 QUSTOJ/1312.cpp diff --git a/QUSTOJ/1312.cpp b/QUSTOJ/1312.cpp new file mode 100644 index 0000000..b1a7ba3 --- /dev/null +++ b/QUSTOJ/1312.cpp @@ -0,0 +1,43 @@ +#include +#include +#include +using namespace std; +char buff[1024]; +int main() +{ + int times; + scanf("%d%*c",×); + for(;times>0;times--) + { + memset(buff,0,1024); + gets(buff); + int len=strlen(buff); + for(int i=0;i