Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

問一個排列組合的程式問題!!!.....

0 views
Skip to first unread message

Zzzzzzzz

unread,
Dec 31, 1998, 3:00:00 AM12/31/98
to

假設我現在有一個 arrar:
p[10] = {1, 2, ......, 10}

我想要從 array 中任取 n 個 elements 出來,
有順利性的: 即 {9, 2, 5} 不要, 因為已用 {2, 5, 9} 表示了.

請問我要如何 code, 較方便?

thanks.....:)

--

Telnet 140.112.8.172 (titan.cc.ntu.edu.tw)

--
※ Origin: 程式設計樂園 ◆ From: arbor.ee.ntu.edu.tw

夢中的她

unread,
Dec 31, 1998, 3:00:00 AM12/31/98
to
==> 在 brad...@cszone.cc.ntu.edu.tw (Zzzzzzzz) 的文章中提到:

> 假設我現在有一個 arrar:
> p[10] = {1, 2, ......, 10}
> 我想要從 array 中任取 n 個 elements 出來,
> 有順利性的: 即 {9, 2, 5} 不要, 因為已用 {2, 5, 9} 表示了.
> 請問我要如何 code, 較方便?
> thanks.....:)
用graph寫吧.....


--
java

java~~~~~
you got to love it!!!!!
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

0 new messages