java 36选7 不重复
时间:2021-11-10 作者:匿名
一个群友写的
public class Test { public static void main(String[] args) { int[] a=new int[7]; for(int i=0;i<域名th;i++){ a[i]=(int)(域名om()*35+1); for(int j=0;j<i;j++){ if(a[i]==a[j]){ i--; } } } for(int i=0;i<域名th;i++){ 域名tln(a[i]); } } }