import java.util.ArrayList; import java.util.Scanner; import java.util.regex.*; class HydrologicalInfo { private String measureDateTime; private double objectWaterLevel;//目测水位 private double actualWaterLevel; private double objectGateOpening;//闸门开度 private double actralGateOpening; double water...
1importjava.util.Scanner;2publicclassMain{3publicstaticvoidmain(String[] args) {4Scanner input =newScanner(System.in);5String s=input.nextLine();6booleanfind=false;7if(s.charAt(0)<49||s.charAt(0)>53||s.charAt(1)!=':')8find=true;9String a=s.substring(2);10intkong=a.indexOf(' ...
1 import java.util.ArrayList; 2 import java.util.Iterator; 3 import java.util.Scanner; 4 import java.util.TreeSet; 5 6 public class Main { 7 public static Scanner input = new Scanner(System.in); 8 public static void main(String[] args){ 9 ArrayList<Integer> list = new ArrayList<Inte...
以下是我的代码 提交后显示答案错误 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int[] arr = new int[10]; int count = 0; double sum = 0; for (int i = 0; i < 10; i++) { arr[i] = ...
import java.util.Scanner; import java.util.Stack; public class Main { private static final char LEFT_XIAO = '('; private static final char RIGFHT_XIAO = ')'; private static final char LEFT_HUA = '{'; private static final char RIGHT_HUA = '}'; ...
import java.util.Arrays;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in);String str=sc.nextLine();//需要⽤nextLine,以后注意默认⽤这个,应该会减少⿇烦 int l=str.length();int flag=0;if(l%8!=0) {//排错 S...
import java.util.*;public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a[] = new int[sc.nextInt()]; int num = sc.ne...pta数据结构 树形结构中元素之间存在一个对多个的关系T 在二叉排序树中,新...
import java.util.Scanner; import java.util.Stack; public class Main { private static final char LEFT_XIAO = '('; private static final char RIGFHT_XIAO = ')'; private static final char LEFT_HUA = '{'; private static final char RIGHT_HUA = '}'; private static final char LEFT_FANG ...
import java.util.*;public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a[] = new int[sc.nextInt()]; int num = sc.ne...pta数据结构 树形结构中元素之间存在一个对多个的关系T 在二叉排序树中,新...