From e1c9886f17e038fb6ebad620040d5b48241e2955 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Wed, 27 Apr 2016 10:16:55 +0800 Subject: [PATCH] Create 1802.cpp --- SDUSTOJ/1802.cpp | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 SDUSTOJ/1802.cpp diff --git a/SDUSTOJ/1802.cpp b/SDUSTOJ/1802.cpp new file mode 100644 index 0000000..5e6c2ec --- /dev/null +++ b/SDUSTOJ/1802.cpp @@ -0,0 +1,69 @@ +#include +#include +#include +using namespace std; +/* +bool check(int inc) +{ + if(inc%36!=0) return false; + char buff[32]; + memset(buff,0,32); + sprintf(buff,"%d",inc); + if(strstr(buff,"36")==NULL) return false; + int len=strlen(buff); + for(int i=0;i