From 5286254a6da78af7e3e4496dadbdc1069ad0e626 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 28 Apr 2016 08:24:39 +0800 Subject: [PATCH] Create 1720.c --- QUSTOJ/1720.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 QUSTOJ/1720.c diff --git a/QUSTOJ/1720.c b/QUSTOJ/1720.c new file mode 100644 index 0000000..70065b3 --- /dev/null +++ b/QUSTOJ/1720.c @@ -0,0 +1,28 @@ +#include +#include +#include + +char buff[64]; + +int cnt[10]; + +int main() +{ + int n; + scanf("%d",&n); + for(int i=1;i<=n;i++) + { + sprintf(buff,"%d",i); + int len=strlen(buff); + for(int j=0;j