当前位置 : 主页 > 编程语言 > java >

鸡兔同笼算法

来源:互联网 收集:自由互联 发布时间:2021-06-28
gistfile1.txt package com.company;import java.util.ArrayList;import java.util.Scanner;public class Main { static final int drumstick = 2; static final int rubbitleg = 4; public static void main(String[] args){ Scanner scan = new Scanner(Sys
gistfile1.txt
package com.company;


import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    static final int drumstick = 2;
    static final int rubbitleg = 4;
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n,i,j;
        int x,y;
        ArrayList
 
   a = new ArrayList
  
   (); n = scan.nextInt(); for(i=0;i
  
 
上一篇:JAVA多线程课堂练习
下一篇:生成随机数
网友评论