| ²é¿´: 308 | »Ø¸´: 2 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
HolyVirginгæ (³õÈëÎÄ̳)
|
[½»Á÷]
¡¾ÇóÖú¡¿×øµÈ´óÏÀÖ¸µã ÒÑÓÐ2È˲ÎÓë
|
||
|
import java.util.Random; import java.lang.System; public class poker { public static void main(String arg[]) { int temp; //×öÒ»¸±ÆË¿ËÅÆ int []poke; poke=new int[48]; int i,j,k; k=0; for(i=0;i<4;i++) { for(j=0;j<12;j++) { poke[k]=j+1; k++; } }//×öÒ»¸±ÆË¿ËÅÆ //Ï´ÅÆ Random myRandomInstance; myRandomInstance=new Random(); for(k=0;k<2000;k++) { i=myRandomInstance.nextInt(48); j=myRandomInstance.nextInt(48); temp=poke; poke=poke[j]; poke[j]=temp; }//Ï´ÅÆ //·¢ÅÆ int [][]plane; plane=new int[8][12]; k=0; for(i=0;i<4;i++) for(j=0;j<12;j++) { plane[j]=poke[k]; k++; } for(i=4;i<8;i++) for(j=0;j<12;j++) { plane[j]=0; } // System.out.print(k) for(i=0;i<8;i++) { for(j=0;j<12;j++) { System.out.print(plane[j]+" " ;}//·¢ÅÆ System.out.println(); } //ÍæÅÆ int []upper; int []down; upper=new int [12]; down=new int [12]; for(j=0;j<12;j++) { upper[j]=0; down[j]=4; } temp=plane[0][0];upper[0]+=1; while(down[0]<7) { plane[(down[temp-1])][temp-1]=temp; System.out.print(temp); (down[temp-1])++; if(down[0]<7) { temp=plane[upper[temp-1]][temp-1]; (upper[temp-1])++; } } for(i=4;i<8;i++) { for(j=0;j<12;j++) { System.out.print(plane[j]+" " ;}//ÍæÅÆ System.out.println(); } } } µ÷ÊÔµ½ÄǶù³ö´íÁË£¬ÏÔʾÊý×éÔ½½çÔõô»ØÊ£¿ |
» ²ÂÄãϲ»¶
332Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
085701Çóµ÷¼Á³õÊÔ286·Ö
ÒѾÓÐ3È˻ظ´
²ÄÁϹ¤³Ì294Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
±¾¿ÆÐÂÄÜÔ´¿ÆÑ§Ó빤³Ì£¬Ò»Ö¾Ô¸»ªÀíÄܶ¯285Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
070305¸ß·Ö×Ó»¯Ñ§ÓëÎïÀí 304·ÖÇóµ÷¼Á
ÒѾÓÐ5È˻ظ´
083000ѧ˶274Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
Ò»Ö¾Ô¸±±¾©»¯¹¤´óѧ²ÄÁÏÓ뻯¹¤£¨085600£©296Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
Çóµ÷¼ÁÒ»Ö¾Ô¸º£´ó£¬0703»¯Ñ§Ñ§Ë¶304·Ö£¬Óдó´´ÏîÄ¿£¬Ëļ¶Òѹý
ÒѾÓÐ11È˻ظ´
071000ÉúÎïѧÇóµ÷¼Á£¬³õÊԳɼ¨343
ÒѾÓÐ7È˻ظ´
0703»¯Ñ§µ÷¼Á£¬Çóµ¼Ê¦ÊÕ
ÒѾÓÐ8È˻ظ´
linyujack
ͳæ (СÓÐÃûÆø)
- ³ÌÐòÇ¿Ìû: 1
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 253.5
- Ìû×Ó: 88
- ÔÚÏß: 16.9Сʱ
- ³æºÅ: 930121
- ×¢²á: 2009-12-18
- ÐÔ±ð: GG
- רҵ: »úе²âÊÔÀíÂÛÓë¼¼Êõ
¡ï
jjdg(½ð±Ò+1):ÐÁ¿àÁË£¡ 2010-04-06 19:02
HolyVirgin(½ð±Ò+6):ÎÒÒѾ½â¾öÁË£¬ÈÔȻллÄã... 2010-04-06 22:13
jjdg(½ð±Ò+1):ÐÁ¿àÁË£¡ 2010-04-06 19:02
HolyVirgin(½ð±Ò+6):ÎÒÒѾ½â¾öÁË£¬ÈÔȻллÄã... 2010-04-06 22:13
|
Ò»¸ö×Ö£¬ÂÒ¡£ |

2Â¥2010-04-06 16:05:41
µÀ¶µÄÌì
½ð³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 711.2
- Ìû×Ó: 114
- ÔÚÏß: 2.6Сʱ
- ³æºÅ: 986511
- ×¢²á: 2010-03-31
- ÐÔ±ð: GG
- רҵ: Ó¦Óû¯Ñ§
3Â¥2010-04-07 13:36:06














;
»Ø¸´´ËÂ¥
5