import java.util.Scanner;
public class Pracetice3 {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int t,a,b,c,d;
t = keyboard.nextInt();
while (t-- !=0 & t<=20) {
a =keyboard.nextInt();
b =keyboard.nextInt();
c =keyboard.nextInt();
d= keyboard.nextInt();
System.out.print(a+" "+b+" "+c+" "+d+" ");
if(d-a==3*(c-b)){
System.out.print(2*d-c);
}
else{
System.out.print(d*d/c);
}
}
}
}
可以請問各位這樣執行為什麼是錯的呢? 謝謝大家
第 1 測資點(100%): WA (line:1)
答案不正確
您的答案為: 1 2 3 4 51 2 4 ...略 正確答案為: 1 2 3 4 5