- 问答
- 2019-06-06 10:30:17 @
package Eric;
import java.util.Scanner;
public class 数独 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int a=9;
int b=9;
int[][]hanglie= new int[a][b];
for(int j=0;j<a;j++) {
for(int i=0;i<b;i++) {
hanglie[i][j]=in.nextInt();
System.out.println(hanglie[i][j]);
}
}
}
}
1 条评论
-
小熊 (wlnirvana) LV 8 MOD @ 2019-06-06 17:01:58
方法非常多。比如你可以试着参考以前的一道题目:
https://vijos.org/d/kidolab_2019_Spring/homework/5c924317f413620933d09bbb/1004
- 1