锘??xml version="1.0" encoding="utf-8" standalone="yes"?>午夜在线网站,精品国产一区二区三区久久久 ,在线资源免费观看http://www.aygfsteel.com/kyleYang/category/43648.html瀛╁効绔嬪織鍑轟埂鍏籌紝瀛︿笉鎴愬悕瑾撲笉榪樸? 椋庡崕姝h寕涔懼潳鍦幫紝浜虹敓鏃犲涓嶉潚灞便? 鍏夐槾濡傚悓嫻佹按鍘伙紝鐝嶆儨鏃跺厜鏈瀹濊吹銆? 楣忕▼涓囬噷闈犺嚜宸憋紝椋為粍鑵捐揪闈掑皯騫淬? zh-cnTue, 19 Jan 2010 11:08:55 GMTTue, 19 Jan 2010 11:08:55 GMT600錛?鑳屽寘錛嶏紞鍔ㄦ佽鍒?/title><link>http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310075.html</link><dc:creator>椋炵唺</dc:creator><author>椋炵唺</author><pubDate>Tue, 19 Jan 2010 06:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310075.html</guid><wfw:comment>http://www.aygfsteel.com/kyleYang/comments/310075.html</wfw:comment><comments>http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310075.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kyleYang/comments/commentRss/310075.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kyleYang/services/trackbacks/310075.html</trackback:ping><description><![CDATA[聽<img src ="http://www.aygfsteel.com/kyleYang/aggbug/310075.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kyleYang/" target="_blank">椋炵唺</a> 2010-01-19 14:31 <a href="http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310075.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍗佹灙90鐜紞錛嶉掑綊http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310074.html椋炵唺椋炵唺Tue, 19 Jan 2010 06:29:00 GMThttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310074.htmlhttp://www.aygfsteel.com/kyleYang/comments/310074.htmlhttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310074.html#Feedback0http://www.aygfsteel.com/kyleYang/comments/commentRss/310074.htmlhttp://www.aygfsteel.com/kyleYang/services/trackbacks/310074.html棰樼洰錛氭墦鍗佹灙錛屼竴鍏辨墦涓?0鐜紝鍙互鎵撴垚0鐜傚叡鏈夊灝戠鎵撴硶錛?br />
public static void main(String[] args) {
聽聽聽聽cumput(90, 9);
聽聽聽聽 System.out.println("鎬繪暟:"+sum);
聽}聽

static int sum;
聽static int store[] = new int[10];
聽static void output()
聽{
聽聽聽聽 for(int i = 9; i>=0; --i)
聽聽聽聽 {
聽聽聽聽聽聽聽 System.out.print(store[i] + " ");
聽聽聽聽 }
聽聽聽 System.out.println();
聽聽聽 ++sum;
聽}


聽static void cumput(int score, int num)
聽{
聽聽聽 // 鏃犳硶瀹屾垚鐨勪簨浠?br />聽聽if(score < 0 || score > (num+1)*10 ) //嬈℃暟num涓?锝?
聽聽聽聽聽聽 return;
聽聽聽
聽聽聽 if(num == 0)
聽聽聽 {
聽聽聽聽聽聽聽聽 store[num] = score;
聽聽聽聽聽聽聽聽 output();
聽聽聽聽聽聽聽聽 return;
聽聽聽 }
聽聽聽
聽聽聽 for(int i = 0; i <= 10; ++i)
聽聽聽 {
聽聽聽聽聽聽聽聽 store[num] = i;
聽聽聽聽聽聽聽聽 cumput(score - i, num - 1);
聽聽聽 }
聽}



椋炵唺 2010-01-19 14:29 鍙戣〃璇勮
]]>
姹夎濉旂畻娉曪紞錛嶉掑綊瀹炵幇http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310073.html椋炵唺椋炵唺Tue, 19 Jan 2010 06:25:00 GMThttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310073.htmlhttp://www.aygfsteel.com/kyleYang/comments/310073.htmlhttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310073.html#Feedback0http://www.aygfsteel.com/kyleYang/comments/commentRss/310073.htmlhttp://www.aygfsteel.com/kyleYang/services/trackbacks/310073.htmlpublic class Hanoic {

聽private static final String DISK_B = "diskB";
聽private static final String DISK_C = "diskC";
聽private static final String DISK_A = "diskA";
聽static String from = DISK_A;
聽static String to = DISK_C;
聽static String mid = DISK_B;

聽public static void main(String[] args) {
聽聽聽 int num = 3;
聽聽聽 move(num, from, mid, to);
聽}聽
private static void move(int num, String from2, String mid2, String to2) {
聽聽if (num == 1) {
聽聽聽System.out.println("move disk 1 from " + from2 + " to " + to2);
聽聽} else {
聽聽聽// 灝唍um-1鍧楃洏瀛愭惉璧?br />聽聽聽move(num - 1, from2, to2, mid2);
聽聽聽// 灝嗘渶鍚庝竴鍧楋紙num錛夊潡鐩樺瓙鎼埌鐩殑鍦?br />聽聽聽move(num, from2, to2);
聽聽聽// 灝唍um-1鍧楃洏瀛愭惉鍥?br />聽聽聽move(num - 1, mid2, from2, to2);
聽聽}

聽}

聽private static void move(int cur, String from, String to) {
聽聽System.out.println("move disk " + cur + " from " + from + " to "
聽聽聽聽+ to);
聽}
}



椋炵唺 2010-01-19 14:25 鍙戣〃璇勮
]]>
鍏ㄦ帓鍒楋紞錛嶉掑綊綆楁硶http://www.aygfsteel.com/kyleYang/archive/2010/01/19/310056.html椋炵唺椋炵唺Tue, 19 Jan 2010 03:46:00 GMThttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310056.htmlhttp://www.aygfsteel.com/kyleYang/comments/310056.htmlhttp://www.aygfsteel.com/kyleYang/archive/2010/01/19/310056.html#Feedback0http://www.aygfsteel.com/kyleYang/comments/commentRss/310056.htmlhttp://www.aygfsteel.com/kyleYang/services/trackbacks/310056.htmlimport java.util.ArrayList;
import java.util.List;

public class PaiLie {

聽/**
聽 * @param args
聽 */
聽public static void main(String[] args) {
聽聽List<String> strList = new ArrayList<String>();
聽聽strList.add("a");
聽聽strList.add("b");
聽聽strList.add("c");
聽聽
聽聽quanpailie(strList, 0);
聽}

聽/**
聽 * 鎸夐掑綊綆楁硶鍒楀嚭鍏ㄦ帓鍒?br />聽 * @param strList
聽 * @param cur
聽 */
聽private static void quanpailie(List<String> strList, int cur)
聽{
聽聽if(cur >= strList.size()) {
聽聽聽System.out.println(strList);
聽聽聽return;
聽聽}
聽聽聽
聽聽for(int i = cur; i < strList.size(); i++)
聽聽{
聽聽聽wape(strList, cur, i);
聽聽聽quanpailie(strList, cur+1);
聽聽聽wape(strList, cur, i);
聽聽}
聽}

聽/**
聽 * 浜ゆ崲絎琲鍜宩浣嶇疆鐨勫?br />聽 * @param strList
聽 * @param i
聽 * @param j
聽 */
聽private static void wape(List<String> strList, int i,int j )
聽{
聽聽String temp = strList.get(i);
聽聽strList.set(i, strList.get(j));
聽聽strList.set(j, temp);
聽聽
聽}
}



椋炵唺 2010-01-19 11:46 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 九龙县| 大埔区| 江西省| 资中县| 吉林省| 米林县| 吴川市| 大竹县| 甘谷县| 佛教| 太和县| 东山县| 沛县| 安新县| 屯留县| 正定县| 巨鹿县| 马边| 潞西市| 利川市| 辽源市| 阿拉善盟| 连山| 屯昌县| 缙云县| 泸西县| 射阳县| 江川县| 宜兴市| 勐海县| 乌海市| 桂林市| 庆城县| 蒙阴县| 陆良县| 荥经县| 岑巩县| 察雅县| 鸡泽县| 阿拉善左旗| 宁远县|