import java.util.Scanner;
import java.io.*;
public class Test{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int [][] b;
b = new int [a][5];
for(int i = 0; i < a; i++){
for(int j = 0; j < 4; j++){
b[i][j] = sc.nextInt();
}
b[i][4] = b[i][3] + (1 << (b[i][3]-b[i][2]-1) );
for(int x = 0; x < 5; x++){
System.out.print(b[i][x] + " ");
}
System.out.println();
}
}
}
錯誤
與正確輸出不相符(line:3)
您的答案為: 1 1 1 1 -21474 ...略
正確答案為: 1 1 1 1 1