import java.util.Scanner;
public class a003{
public static void main(String [] argv){
Scanner cin = new Scanner(System.in);
while(cin.hasNext()){
int a = cin.nextInt();
int b = cin.nextInt();
int c = cin.nextInt();
int d = cin.nextInt();
int e = cin.nextInt();
int f=d-c;
int g=e-d;
if((0<=a)|(a<=20)){
if(f==g){
System.out.println(b+" "+c+" "+d+" "+e+" "+(e+f));
}else{
System.out.println(b+" "+c+" "+d+" "+e+" "+(e*f));
}
}
}
}
}
錯誤:Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:838)
at java.util.Scanner.next(Scanner.java:1461)
at java.util.Scanner.nextInt(Scanner.java:2091)
at java.util.Scanner.nextInt(Scanner.java:2050)
at code_1145531.main(code_1145531.java:11)