import java.util.Scanner;
public class EvaHomework {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNext()) {
int t = scan.nextInt();
int t1 = scan.nextInt();
int t2 = scan.nextInt();
int t3 = scan.nextInt();
int t4 = scan.nextInt();
int d1 = scan.nextInt();
int d2 = scan.nextInt();
int d3 = scan.nextInt();
int d4 = scan.nextInt();
int t5 = t4 + 1;
int d5 = d4 * 2;
System.out.print(t1 + " " + t2 + " " + t3 + " " + t4 + " " + t5);
System.out.println();
System.out.print(d1 + " " + d2 + " " + d3 + " " + d4 + " " + d5);
}
}
}
這下面釋放解題後出現的文字!!
您的程式被監控系統中斷,可能是程式無法正常結束所導致。 Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next(Scanner.java:1485) at java.util.Scanner.nextInt(Scanner.java:2117) at java.util.Scanner.nextInt(Scanner.java:2076) at EvaHomework.main(EvaHomework.java:14)