pat 1069 The Black Hole of Numbers
水题,代码如下:
1 #include<cstdio> 2 #include<cstdlib> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 7 bool isSame(char buf[]) 8 { 9 int i = 1; 10 while(buf[i] != '
pat 1069 The Black Hole of Numbers
水题,代码如下:
1 #include<cstdio> 2 #include<cstdlib> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 7 bool isSame(char buf[]) 8 { 9 int i = 1; 10 while(buf[i] != '