青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 183,  comments - 10,  trackbacks - 0
 

求整數(shù) n 的二進(jìn)制表示中 1 的個(gè)數(shù)

1.
采用除二取余法
while (n != 0)
{
 if (n % 2 == 1)
 {
  ++ret;
 }
 n /= 2;
}
這種方法對(duì)于 n 是正數(shù)的時(shí)候沒(méi)有問(wèn)題,而且需要是整數(shù)。
如果 n 是負(fù)整數(shù),則需要與機(jī)器相關(guān),如果 n = -3, 則 n % 2 有余 -1 ,這種情況下,得到的最終結(jié)果是 0,對(duì)于任何的負(fù)整數(shù)結(jié)果都是 0
也可以通過(guò)移位的方法做:
while (n != 0)
{
 ret += (n & 1);
 n >>= 1;
}
這種方法對(duì)于正數(shù)是可行的,并且不限于整數(shù)
但是對(duì)于負(fù)數(shù),由于最高位是 1 ,做的意味是邏輯移位,移位后高位還是 1 ,程序進(jìn)入了死循環(huán)。

2.
對(duì) 1 進(jìn)行左移位,做位運(yùn)算
int flag = 1;
int ret = 0;
while (flag != 0)
{
 if ((flag & n) != 0)
 {
  ++ret;
 }
 flag << 1
}

這種方法不是對(duì) n 進(jìn)行的移位,而是對(duì) flag 移的位,不會(huì)造成 n 移位帶來(lái)的死循環(huán)。當(dāng) flag 移到 sizeof (flag) * 8 位時(shí),歸零,循環(huán)終止。

3.
采用 n & (n - 1) 操作
以上兩種方法都是做了 sizeof (type) * 8 次循環(huán)
采用 n & (n - 1) 的方式,只需做 n 的二進(jìn)制中含有 1 的個(gè)數(shù)次循環(huán)即可。
while (n != 0)
{
 ++ret;
 n &= (n - 1);
}

http://m.shnenglu.com/jake1036/archive/2011/05/18/146698.html

posted @ 2011-07-23 11:03 unixfy 閱讀(165) | 評(píng)論 (0)編輯 收藏

關(guān)于含有成員指針的類的復(fù)制控制

一個(gè)類中如果含有了指針成員,在不加任何措施的時(shí)候,復(fù)制類對(duì)象是做的位復(fù)制操作,即是所謂的淺拷貝,兩個(gè)對(duì)象的指針式一樣的值,指向同一塊內(nèi)存區(qū)。
這種情況下,當(dāng)一個(gè)對(duì)象刪除其成員指針指向的內(nèi)存區(qū)后,另一個(gè)對(duì)象的指針成員指向的內(nèi)存區(qū)也就被釋放了。
如果第一個(gè)對(duì)象析構(gòu)時(shí)刪除了這個(gè)內(nèi)存區(qū),那么在第二對(duì)象析構(gòu)時(shí)造成同一塊內(nèi)存多次被釋放,程序崩潰。

解決這個(gè)問(wèn)題有常規(guī)上有兩種方法
一是,進(jìn)行深拷貝,在拷貝構(gòu)造函數(shù)和復(fù)制運(yùn)算符中進(jìn)行相應(yīng)的內(nèi)存分配和復(fù)制工作。析構(gòu)的時(shí)候只是各自析構(gòu)各自的。
二是,采用引用計(jì)數(shù)手段,在拷貝構(gòu)造函數(shù)和復(fù)制運(yùn)算符中對(duì)引用計(jì)數(shù)進(jìn)行分析,多個(gè)復(fù)制對(duì)象的指針成員只指向同一個(gè)內(nèi)存區(qū),在最后一個(gè)對(duì)象析構(gòu)的時(shí)候才最終將這個(gè)內(nèi)存區(qū)釋放掉。
引用計(jì)數(shù)的好處是,可以節(jié)省內(nèi)存分配、拷貝、內(nèi)存釋放所帶來(lái)的效率消耗,以及節(jié)省內(nèi)存。

http://m.shnenglu.com/jake1036/archive/2011/05/17/146594.html

淺拷貝

 1 #include <iostream>
 2 #include <cstring>
 3 using namespace std;
 4 
 5 class str
 6 {
 7 private:
 8     char* s_;
 9 public:
10     str(const char* s = "")
11     {
12         s_ = new char[strlen(s) + 1];
13         if (s_ != 0)
14         {
15             strcpy(s_, s);
16         }
17     }
18     ~str()
19     {
20         delete [] s_;
21     }
22     char* s() const
23     {
24         return s_;
25     }
26 };
27 
28 ostream& operator << (ostream& outconst str& s)
29 {
30     out << s.s() << endl;
31     return out;
32 }
33 
34 int main()
35 {
36     str s1 = "123";
37     str s2(s1);
38     cout << s1 << endl;
39     cout << s2 << endl;
40 }

 


深拷貝
 1 #include <iostream>
 2 #include <cstring>
 3 using namespace std;
 4 
 5 class str
 6 {
 7 private:
 8     char* s_;
 9 public:
10     str(const char* s = "")
11     {
12         s_ = new char[strlen(s) + 1];
13         if (s_ != 0)
14         {
15             strcpy(s_, s);
16         }
17     }
18     str(const str& s)
19     {
20         s_ = new char[strlen(s.s_) + 1];
21         if (s_ != 0)
22         {
23             strcpy(s_, s.s_);
24         }
25     }
26     str& operator = (const str& s)
27     {
28         if (this != &s)
29         {
30             delete [] s_;
31             s_ = new char[strlen(s.s_) + 1];
32             if (s_ != 0)
33             {
34                 strcpy(s_, s.s_);
35             }
36         }
37         return *this;
38     }
39     ~str()
40     {
41         delete [] s_;
42     }
43     char* sr() const
44     {
45         return s_;
46     }
47 };
48 
49 ostream& operator << (ostream& outconst str& s)
50 {
51     out << s.sr() << endl;
52     return out;
53 }
54 
55 int main()
56 {
57     str s1 = "123";
58     str s2(s1);
59     cout << s1 << endl;
60     cout << s2 << endl;
61 }


引用計(jì)數(shù)
引用計(jì)數(shù)的實(shí)現(xiàn)是通過(guò)在類對(duì)象中增加一個(gè)指向 int 型的指針,這個(gè)指針指向的那個(gè) int 即是計(jì)數(shù),記錄指針指向的那塊內(nèi)存被幾個(gè)對(duì)象共用著。
采用引用計(jì)數(shù),在構(gòu)造函數(shù)、析構(gòu)函數(shù)、拷貝構(gòu)造函數(shù)、復(fù)制運(yùn)算符中,都要對(duì)這個(gè)指向 int 的指針進(jìn)行操作,并且需要判斷指針指針指向 int 的變化情況,當(dāng)為 0 時(shí),則要釋放掉指針指向的內(nèi)存。
 1 #include <iostream>
 2 #include <cstring>
 3 using namespace std;
 4 
 5 class str
 6 {
 7 private:
 8     char* s_;
 9     int* pcount_;
10 public:
11     str(const char* s = "")
12     {
13         s_ = new char[strlen(s) + 1];
14         if (s_ != 0)
15         {
16             strcpy(s_, s);
17             pcount_ = new int;
18             if (pcount_ != 0)
19             {
20                 *pcount_ = 1;
21             }
22         }
23     }
24     str(const str& s)
25     {
26         s_ = s.s_;
27         pcount_ = s.pcount_;
28         ++(*pcount_);
29     }
30     str& operator = (const str& s)
31     {
32         if (this != &s)
33         {
34             --(*pcount_);
35             if (*pcount_ == 0)
36             {
37                 if (s_ != 0)
38                 {
39                     delete [] s_;
40                     s_ = 0;
41                 }
42                 delete pcount_;
43                 pcount_ = 0;
44             }
45             s_ = s.s_;
46             pcount_ = s.pcount_;
47             ++(*pcount_);
48         }
49         return *this;
50     }
51     ~str()
52     {
53         --(*pcount_);
54         if (*pcount_ == 0)
55         {
56             // cout << "test" << endl;
57             if (s_ != 0)
58             {
59                 delete [] s_;
60                 s_ = 0;
61             }
62             delete pcount_;
63             pcount_ = 0;
64         }
65     }
66     char* sr() const
67     {
68         return s_;
69     }
70 };
71 
72 ostream& operator << (ostream& outconst str& s)
73 {
74     out << s.sr() << endl;
75     return out;
76 }
77 
78 int main()
79 {
80     str s1 = "123";
81     str s2(s1);
82     cout << s1 << endl;
83     cout << s2 << endl;
84 }
85 



posted @ 2011-07-22 17:20 unixfy 閱讀(274) | 評(píng)論 (0)編輯 收藏

第一個(gè)只出現(xiàn)一次的字符

一個(gè)字符串中,查找其中第一個(gè)只出現(xiàn)一次的字符。
這里建設(shè)這個(gè)字符串中的字符可以使英文大小寫(xiě)字符也可以是數(shù)字字符。

http://m.shnenglu.com/jake1036/archive/2011/05/17/146542.html

解決方案是:
用 map 記錄每個(gè)字符的出現(xiàn)次數(shù),以及第一次出現(xiàn)的索引。
然后遍歷 map ,找到出現(xiàn) 1 次且索引最小的那個(gè)字符。

 1 #include <iostream>
 2 #include <string>
 3 #include <map>
 4 using namespace std;
 5 
 6 char findHeadOnce(const string& s)
 7 {
 8     map<charint> times;
 9     map<charint> indexes;
10     for (string::size_type i = 0; i != s.size(); ++i)
11     {
12         ++times[s[i]];
13         if (times[s[i]] == 1)
14         {
15             indexes[s[i]] = i;
16         }
17     }
18     int idx = s.size();
19     for (map<charint>::const_iterator cit = indexes.begin(); cit != indexes.end(); ++cit)
20     {
21         if (times[cit->first] == 1 && idx > cit->second)
22         {
23             idx = cit->second;
24         }
25     }
26     if (idx < s.size())
27     {
28         return s[idx];
29     }
30     else
31     {
32         return '*';
33     }
34 }
35 
36 int main()
37 {
38     string s;
39     while (cin >> s)
40     {
41         cout << findHeadOnce(s) << endl;
42     }
43 }

 


posted @ 2011-07-22 16:21 unixfy 閱讀(317) | 評(píng)論 (0)編輯 收藏

從上向下遍歷二叉樹(shù)

樹(shù)的層次遍歷
圖的廣度遍歷

首先是要定義二叉樹(shù)節(jié)點(diǎn)的結(jié)構(gòu)體
建立二叉樹(shù)
層次遍歷,需要一個(gè)隊(duì)列輔助

建立一棵二叉樹(shù)
遞歸的前序、中序、后序遍歷
層次遍歷
http://m.shnenglu.com/jake1036/archive/2011/05/17/146537.html

  1 #include <iostream>
  2 #include <queue>
  3 using namespace std;
  4 
  5 struct node
  6 {
  7     int data;
  8     node* left;
  9     node* right;
 10 };
 11 
 12 void addNode(int item, node*& root)
 13 {
 14     if (root == 0)
 15     {
 16         root = new node;
 17         root->data = item;
 18         root->left = 0;
 19         root->right = 0;
 20         return;
 21     }
 22     else
 23     {
 24         node* p = root, * p2;
 25         while (p != 0)
 26         {
 27             p2 = p;
 28             if (item < p->data)
 29             {
 30                 p = p->left;
 31             }
 32             else
 33             {
 34                 p = p->right;
 35             }
 36         }
 37         node* q = new node;
 38         q->data = item;
 39         q->left = 0;
 40         q->right = 0;
 41         if (p2->data > q->data)
 42         {
 43             p2->left = q;
 44         }
 45         else
 46         {
 47             p2->right = q;
 48         }
 49     }
 50 }
 51 
 52 void preOrder(node* root)
 53 {
 54     if (root != 0)
 55     {
 56         cout << root->data << ' ';
 57         preOrder(root->left);
 58         preOrder(root->right);
 59     }
 60 }
 61 
 62 void inOrder(node* root)
 63 {
 64     if (root != 0)
 65     {
 66         inOrder(root->left);
 67         cout << root->data << ' ';
 68         inOrder(root->right);
 69     }
 70 }
 71 
 72 void postOrder(node* root)
 73 {
 74     if (root != 0)
 75     {
 76         postOrder(root->left);
 77         postOrder(root->right);
 78         cout << root->data << ' ';
 79     }
 80 }
 81 
 82 void levelOrder(node* root)
 83 {
 84     if (root != 0)
 85     {
 86         queue<node*> q;
 87         node* t;
 88         q.push(root);
 89         while (!q.empty())
 90         {
 91             t = q.front();
 92             q.pop();
 93             cout << t-> data << ' ';
 94             if (t->left != 0)
 95             {
 96                 q.push(t->left);
 97             }
 98             if (t->right != 0)
 99             {
100                 q.push(t->right);
101             }
102         }
103     }
104 }
105 
106 int main()
107 {
108     int a[] = {527498361};
109     node* root = 0;
110     for (int i = 0; i != sizeof (a) / sizeof (*a); ++i)
111     {
112         // cout << i << endl;
113         addNode(a[i], root);
114     }
115     preOrder(root);
116     cout << endl;
117     inOrder(root);
118     cout << endl;
119     postOrder(root);
120     cout << endl;
121     levelOrder(root);
122     cout << endl;
123     return 0;
124 }


posted @ 2011-07-22 15:44 unixfy 閱讀(176) | 評(píng)論 (0)編輯 收藏

《Unix Curses 庫(kù)導(dǎo)論-翻譯版》 下載地址

原文檔地址:
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf

CSDN 下載地址:
http://download.csdn.net/source/3459634

本站下載

posted @ 2011-07-21 17:25 unixfy 閱讀(135) | 評(píng)論 (0)編輯 收藏
     摘要:             Unix Curses 庫(kù)導(dǎo)論 Norman Matloff http://heather.cs.ucdavis.edu/~matloff/ 原版地址:http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf 加州大...  閱讀全文
posted @ 2011-07-21 17:12 unixfy 閱讀(351) | 評(píng)論 (0)編輯 收藏

一個(gè)關(guān)于數(shù)組的問(wèn)題

一個(gè)數(shù)組 {5, 2, 9, 4, 7}
這個(gè)數(shù)組有 5 個(gè)元素
這 5 個(gè)元素的位置依次是 1 2 3 4 5
這 5 個(gè)元素的從小到大的順序是 3 1 5 2 4

數(shù)組中的一個(gè)元素,有三個(gè)屬性即:
元素本身    A   5 2 9 4 7
原來(lái)在數(shù)組中的位置  B 1 2 3 4 5
從小到大的順序      C 3 1 5 2 4

給定一個(gè)數(shù)組,如何得到每個(gè)元素的這三個(gè)屬性?

對(duì)于每個(gè)元素,知道其中一個(gè)屬性,如何得到另外兩個(gè)屬性
B 和 C 都是從 1 到 5 的。
對(duì) B 可以排個(gè)序,然后按索引取即可。
C 也是如此。

對(duì)于 A ,因?yàn)槠涫怯虚g隔的,如果直接按索引,可能會(huì)浪費(fèi)空間??梢圆捎霉Hプ?O(1) 。
也可以直接對(duì)其進(jìn)行一遍掃描 O(N) 。
或者建立平衡二叉樹(shù) O(logN) 。

 1 #include <iostream>
 2 #include <cstdlib>
 3 using namespace std;
 4 
 5 struct Element
 6 {
 7     int value;
 8     int position;
 9     int order;
10 };
11 
12 int cmpByValue(const void* a, const void* b)
13 {
14     return ((Element*)a)->value - ((Element*)b)->value;
15 }
16 
17 int cmpByPosition(const void* a, const void* b)
18 {
19     return ((Element*)a)->position - ((Element*)b)->position;
20 }
21 
22 int cmpByOrder(const void* a, const void* b)
23 {
24     return ((Element*)a)->order - ((Element*)b)->order;
25 }
26 
27 int main()
28 {
29     int a[] = {52947};
30     Element els[5];
31     for (int i = 0; i != 5++i)
32     {
33         els[i].value = a[i];
34         els[i].position = i + 1;
35     }
36     qsort(els, 5sizeof (*els), cmpByValue);
37 
38     for (int i = 0; i != 5++i)
39     {
40         els[i].order = i + 1;
41     }
42     
43     for (int i = 0; i != 5++i)
44     {
45         cout << els[i].value << ' ' << els[i].position << ' ' << els[i].order << endl;
46     }
47     cout << endl;
48     
49     qsort(els, 5sizeof (*els), cmpByPosition);
50     
51     for (int i = 0; i != 5++i)
52     {
53         cout << els[i].value << ' ' << els[i].position << ' ' << els[i].order << endl;
54     }
55     cout << endl;
56     
57     qsort(els, 5sizeof (*els), cmpByOrder);
58     for (int i = 0; i != 5++i)
59     {
60         cout << els[i].value << ' ' << els[i].position << ' ' << els[i].order << endl;
61     }
62     
63     return 0;
64 }

 


http://www.cplusplus.com/reference/clibrary/cstdlib/qsort/
http://www.slyar.com/blog/stdlib-qsort.html
http://m.shnenglu.com/qywyh/articles/3405.html
http://pubs.opengroup.org/onlinepubs/009695399/functions/qsort.html
http://linux.die.net/man/3/qsort
http://en.wikipedia.org/wiki/Qsort
http://msdn.microsoft.com/en-us/library/aa272872(v=vs.60).aspx
posted @ 2011-07-20 11:32 unixfy 閱讀(97) | 評(píng)論 (0)編輯 收藏

求 n! 的尾部連續(xù)的 0 的個(gè)數(shù)

這個(gè)題目在網(wǎng)上的一個(gè)面試題中出現(xiàn)過(guò)
《編程之美》里也有這個(gè)問(wèn)題

求末尾有多少 0
關(guān)鍵是對(duì) n! 進(jìn)行質(zhì)因數(shù)分解,分解得到的質(zhì)因數(shù)有 1 2 3 5 7 11 ...
觀察這些質(zhì)因數(shù)我們可以知道 0 是由 2 和 5 相乘得到的
質(zhì)因數(shù) 2 的個(gè)數(shù)和 5 的個(gè)數(shù)決定了 0 的個(gè)數(shù)
2 的個(gè)數(shù)大于等于 5 的個(gè)數(shù)
這里 0 的個(gè)數(shù)即是質(zhì)因數(shù)中 5 的個(gè)數(shù)
對(duì) 1 - n 的每個(gè)數(shù),計(jì)算其內(nèi)有多少個(gè)質(zhì)因數(shù) 5 ,所得的結(jié)果即是 n! 的尾部連續(xù)的 0 的個(gè)數(shù)。

 1 #include <iostream>
 2 using namespace std;
 3 
 4 int foo(int n)
 5 {
 6     int ret = 0, t;
 7     for (int i = 1; i <= n; ++i)
 8     {
 9         t = i;
10         while (t % 5 == 0)
11         {
12             ++ret;
13             t /= 5;
14         }
15     }
16     return ret;
17 }
18 
19 int main()
20 {
21     int n;
22     while (cin >> n)
23     {
24         cout << foo(n) << endl;
25     }
26     return 0;
27 }

 


posted @ 2011-07-19 22:12 unixfy 閱讀(374) | 評(píng)論 (0)編輯 收藏

符合數(shù) A 定義的數(shù)

d(n) = n + n 的各位之和
d(78) = 78 + 7 + 8 = 93

定義數(shù) A :數(shù) A 找不到一個(gè)數(shù) B 可有 d(B) = A ,即 A 不能由其他數(shù)生成。
找出 1 - 10000 里所有符合數(shù) A 的數(shù)。

根據(jù) d 的定義 d(a) = b,我們知道對(duì)每一個(gè) a 有 a < b

要找到 1 - 10000 里所有的符合 A 的數(shù),即是找到不存在 d(B) = A 的數(shù) A 。

可以設(shè)定一個(gè) 10001 大小的數(shù)組,遍歷整個(gè)數(shù)組,計(jì)算每個(gè)下標(biāo) B 對(duì)應(yīng)的 d(B) A 。將以 A 為下標(biāo)的元素設(shè)置狀態(tài)。
遍歷完后,即可確定要找的符合數(shù) A 的數(shù)。

 

 1 #include <iostream>
 2 using namespace std;
 3 
 4 int sum(int n)
 5 {
 6     int ret = 0;
 7     while (n != 0)
 8     {
 9         ret += n % 10;
10         n /= 10;
11     }
12     return ret;
13 }
14 
15 void findA(int a[], int n)
16 {
17     memset(a, 0sizeof (*a) * n);
18     int t = 0;
19     for (int i = 1; i <= n; ++i)
20     {
21         if ((t = i + sum(i) <= n))
22         {
23             a[i + sum(i)] = 1;
24         }
25     }
26 }
27 
28 int main()
29 {
30     int n;
31     const int size = 10001;
32     int a[size + 1];
33 
34     findA(a, size);
35 
36     for (int i = 1; i <= size; ++i)
37     {
38         if (a[i] == 0)
39         {
40             cout << i << ' ';
41         }
42     }
43     cout << endl;
44 
45     return 0;
46 }

 

posted @ 2011-07-19 21:59 unixfy 閱讀(165) | 評(píng)論 (0)編輯 收藏

按一定概率打印數(shù),不是隨機(jī)數(shù)

打印的數(shù)是隨機(jī)生成的,但是總體上看,不同的隨機(jī)數(shù)打印出來(lái)的次數(shù)要不同。
打印 1000 個(gè)隨機(jī)數(shù),隨機(jī)數(shù)的范圍是 0-100,這 1000 個(gè)隨機(jī)數(shù)根據(jù)其大小出現(xiàn)次數(shù)的比例不同,1 出現(xiàn)的比例最小,100 出現(xiàn)的比率最大。

需要注意的東西
隨機(jī)數(shù)的范圍 m
隨機(jī)參數(shù)的依據(jù),這里的依據(jù)是根據(jù)隨機(jī)數(shù)的大小確定的,即使函數(shù)中的 t
產(chǎn)生的隨機(jī)數(shù)的個(gè)數(shù) n
保存的結(jié)果 a ,a 中保存的其實(shí)不是 rand 產(chǎn)生的數(shù),而是根據(jù) rand 產(chǎn)生的數(shù)進(jìn)而確定的 t 的下標(biāo)
統(tǒng)計(jì)結(jié)果的 s
這里用到了 rand 函數(shù),a 中保存的不是直接取自 rand ,而是根據(jù) rand 產(chǎn)生的數(shù)間接得到的 t 的那個(gè)下標(biāo),因?yàn)轭}目就是要求根據(jù)不同的概率打印出數(shù),這個(gè)數(shù)其實(shí)不是隨機(jī)數(shù)了。

實(shí)現(xiàn):

 1 #include <iostream>
 2 #include <string>
 3 #include <ctime>
 4 #include <cstdlib>
 5 #include <cstring>
 6 using namespace std;
 7 
 8 // 結(jié)果存于 a 中,產(chǎn)生 n 個(gè)結(jié)果
 9 // 范圍是從 1 - m
10 int foo(int a[], int s[], int n, int m)
11 {
12     int* t = new int [m];
13     t[0= 1;
14     for (int i = 1; i < m; ++i)
15     {
16         t[i] = t[i - 1+ i + 1;
17     }
18     int MAX = (1 + m) * m / 2;
19     
20     // cout << t[m - 1] << endl;
21     // cout << MAX << endl;
22     
23     srand(time(0));
24     int e = 0;
25     int r = 0;
26     for (int i = 0; i < n; ++i)
27     {
28         r = (rand() % MAX) + 1;
29         //cout << "r: " << r << endl;
30         for (int j = m - 1; j >= 0--j)
31         {
32             if (r > t[j])
33             {
34                 a[e++= j + 1 + 1;
35                 break;
36             }
37             else if (r == t[j])
38             {
39                 a[e++= j + 1;
40                 break;
41             }
42         }
43         /*
44         for (int j = 0; j < m; ++j)
45         {
46             if (r <= t[j])
47             {
48                 //cout << j + 1 << endl;
49                 a[e++] = j + 1;
50                 break;
51             }
52         }
53         */
54     }
55     
56     memset(s, 0sizeof (*s) * m);
57     for (int i = 0; i != n; ++i)
58     {
59         ++s[a[i] - 1];
60     }
61 }
62 
63 int main()
64 {
65     int n = 0, m = 0;
66     int* a, * s;
67     while (cin >> n >> m)
68     {
69         a = new int [n];
70         s = new int [m];
71         foo(a, s, n, m);
72         
73         for (int i = 0; i < n; ++i)
74         {
75             cout << a[i] << ' ';
76         }
77         cout << endl;
78         
79         for (int i = 0; i != m; ++i)
80         {
81             cout << i + 1 << "" << s[i] << endl;
82         }
83     }
84     return 0;
85 }


posted @ 2011-07-19 14:20 unixfy 閱讀(198) | 評(píng)論 (0)編輯 收藏
僅列出標(biāo)題
共19頁(yè): First 3 4 5 6 7 8 9 10 11 Last 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲欧美日韩综合| 免费观看成人网| 欧美顶级少妇做爰| 麻豆成人91精品二区三区| 久久国产夜色精品鲁鲁99| 久久国产日本精品| 蜜桃精品一区二区三区 | 欧美精品一区二| 欧美日韩成人综合在线一区二区| 欧美激情91| 国产精品国产福利国产秒拍| 国产精品区一区二区三区| 国产色爱av资源综合区| 国产亚洲一本大道中文在线| 激情综合电影网| 宅男噜噜噜66一区二区| 欧美一区二区三区播放老司机| 久久精品国产免费看久久精品| 老司机精品福利视频| 亚洲国产精品va在看黑人| 亚洲成色777777女色窝| 99www免费人成精品| 亚洲欧洲av一区二区| 久久阴道视频| 国产精品一国产精品k频道56| 极品日韩久久| 亚洲视频日本| 美日韩精品视频| 亚洲先锋成人| 美玉足脚交一区二区三区图片| 欧美日韩一二三区| 国产亚洲一区二区三区| 一本久久精品一区二区| 欧美一区永久视频免费观看| 欧美激情按摩在线| 亚洲欧美日韩综合aⅴ视频| 欧美成人按摩| 国产一区二区三区自拍| 一区二区三区 在线观看视频| 久久福利资源站| 日韩系列在线| 免费观看久久久4p| 国内久久精品视频| 午夜精品视频在线观看| 亚洲国产高清在线观看视频| 午夜亚洲性色福利视频| 欧美日韩另类丝袜其他| 亚洲国产三级网| 久久久久久亚洲精品杨幂换脸| 99天天综合性| 久久久激情视频| 日韩一级免费观看| 米奇777在线欧美播放| 国产有码一区二区| 亚洲欧美在线免费观看| 亚洲免费av片| 欧美日韩国产色综合一二三四| 1204国产成人精品视频| 亚洲综合日韩在线| 99re6这里只有精品| 欧美日本中文字幕| 99精品国产福利在线观看免费 | 亚洲日本aⅴ片在线观看香蕉| 久久精品视频在线免费观看| 国产人久久人人人人爽| 午夜一区二区三区不卡视频| 一本一道久久综合狠狠老精东影业 | 欧美中文在线观看国产| 国产精品国产三级国产aⅴ9色| 一区二区国产精品| 日韩视频在线你懂得| 欧美激情按摩在线| 99综合精品| 99国内精品| 国产精品www| 西西人体一区二区| 欧美一区二区三区男人的天堂 | 欧美大片在线观看一区| 91久久精品一区| 亚洲精品欧美日韩| 欧美日韩日本视频| 欧美一区二区福利在线| 欧美一区二区啪啪| 在线免费观看日本一区| 亚洲国产精品第一区二区| 欧美顶级大胆免费视频| 亚洲天堂av图片| 亚洲欧美日韩一区在线观看| 国产真实久久| 亚洲黄一区二区| 欧美午夜激情小视频| 欧美一区二视频| 老牛嫩草一区二区三区日本| 亚洲区免费影片| 一区二区毛片| 激情五月***国产精品| 欧美国产精品一区| 欧美午夜宅男影院| 玖玖在线精品| 欧美日韩一区高清| 狂野欧美激情性xxxx| 欧美日本在线视频| 亚洲国产免费| 久久久久欧美精品| 欧美国产日韩亚洲一区| 亚洲欧美日韩一区| 美女主播精品视频一二三四| 午夜欧美精品久久久久久久| 久久亚洲一区二区三区四区| 亚洲一区999| 米奇777在线欧美播放| 欧美一区二区三区免费视频| 免费试看一区| 久久国产精品电影| 欧美日韩一区二区三区四区五区| 久久亚洲二区| 国产精品视频999| 亚洲国产婷婷| 在线观看日韩精品| 性色av一区二区怡红| 一本久久综合亚洲鲁鲁| 麻豆精品在线视频| 久久色在线播放| 国产精品美女久久久免费| 亚洲国产精品一区二区www在线 | 久久综合99re88久久爱| 午夜亚洲视频| 欧美日韩在线看| 亚洲欧洲一区| 亚洲人成网站在线播| 久久精品系列| 久久激情五月丁香伊人| 国产精品久久久久久久久久尿| 91久久精品国产91久久性色| 在线免费不卡视频| 久久伊人精品天天| 久久精品国产久精国产爱| 国产精品香蕉在线观看| 一本色道久久综合狠狠躁的推荐| 日韩亚洲欧美成人| 欧美日产一区二区三区在线观看| 欧美成人中文字幕| 在线播放一区| 久久久久高清| 欧美电影在线| 99精品99| 国产精品成人aaaaa网站| 亚洲麻豆一区| 亚洲精品在线三区| 欧美精品一区二区三区蜜臀| 亚洲国产婷婷| 亚洲午夜久久久| 国产精品资源在线观看| 欧美一区二区三区免费视| 久久亚洲精品一区二区| 亚洲第一页在线| 欧美日本韩国| 一区二区三区国产在线| 午夜精品福利一区二区蜜股av| 国产精品视频精品| 亚洲欧美日韩国产另类专区| 欧美一区午夜精品| 亚洲福利一区| 欧美日韩在线视频一区| 亚洲视频免费在线| 欧美一区二区免费观在线| 老司机一区二区| 欧美福利小视频| 亚洲男人的天堂在线aⅴ视频| 欧美日韩国产系列| 亚洲精品视频免费| 亚洲国产另类久久精品| 亚洲欧美日韩综合一区| 欧美r片在线| 亚洲视频axxx| 暖暖成人免费视频| 亚洲三级影院| 亚洲国产精品精华液2区45| 欧美三级免费| 亚洲精品免费看| 欧美主播一区二区三区美女 久久精品人 | 最新亚洲视频| 久久黄色级2电影| 亚洲精品久久久久久久久| 国产精品麻豆欧美日韩ww| 久久―日本道色综合久久| 日韩视频在线一区| 欧美成人a视频| 午夜精品久久久久久久99樱桃| 亚洲第一页在线| 国产日韩欧美电影在线观看| 欧美国产先锋| 久久手机免费观看| 午夜久久黄色| aa级大片欧美| 亚洲大胆人体在线| 久久免费视频在线观看| 亚洲男女自偷自拍| 99精品久久久| 亚洲国产婷婷|