文章列表
给出一个数字n,求出所有的全排列,如给出3则结果为:
3210
2310
2130
2103
3120
1320
1230
1203
3102
1302
1032
1023
3201
2301
2031
2013
3021
0321
0231
0213
3012
0312
0132
0123
代码如下:
import java.util.*;
import java.io.*;
public class P1 {
public static void main( String[] args ); {
try {
BufferedReader in = new Buff ...
- 2006-02-20 07:16
- 浏览 2903
- 评论(0)
其中BootPicture.java即为启动的画面 如下:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class BootPicture extends JWindow {
private ImageIcon image = new ImageIcon( "173.jpg" );;
public void paint( Graphics g ); {
g = this.getGraphics();;
super.paint( g ) ...
- 2006-02-20 07:11
- 浏览 1026
- 评论(0)
public class WaterFlower {
public static void main( String[] args ); {
int sum = 0;
for(int a = 1;a <= 9 ; a ++);{
for(int b = 0; b <= 9 ; b ++);{
for(int c = 0; c <= 9 ; c ++);{
int x = a * 100 + b * 10 + c;
int l = a * a * a;
int m = b * b * b ...
- 2006-02-20 07:04
- 浏览 1072
- 评论(0)