📅  最后修改于: 2022-03-11 14:52:16.304000             🧑  作者: Mango
Scanner scanner = new Scanner(System.in);
int numOfBlocks = scanner.nextInt();
int weightArray[] = new weightArray[numOfBlocks];
for(int i=0;i