堆排序
摘要:1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 const int N=15; 8 void change(int a[],int f,int t) 9 {10 int tmp=a[f];11 ...
阅读全文
posted @
2015-05-03 23:12
Evence
阅读(167)
推荐(0)
leetcode:202happy数
摘要:1 #include 2 #include 3 #include 4 5 int arr[100]; 6 int inum=0; 7 8 bool isHappy(int n) 9 {10 11 for(int k=0 ; (n!=1)&& k<5000 ; ++k)12 {1...
阅读全文
posted @
2015-05-03 21:11
Evence
阅读(155)
推荐(0)
一句话扣单词
摘要:1 #include 2 #include 3 #include 4 #include 5 const int LEN=1024; 6 int main(int argc,char* argv[]) //一句话扣单词 7 { 8 char arr[LEN]; 9 ...
阅读全文
posted @
2015-05-01 21:50
Evence
阅读(189)
推荐(0)