結果
| 問題 | No.3163 [Cherry 7th Tune N] Draft | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-08-26 10:53:29 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 193 ms / 2,000 ms | 
| コード長 | 366 bytes | 
| コンパイル時間 | 2,469 ms | 
| コンパイル使用メモリ | 78,004 KB | 
| 実行使用メモリ | 48,488 KB | 
| 最終ジャッジ日時 | 2025-08-26 10:53:34 | 
| 合計ジャッジ時間 | 4,279 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 7 | 
ソースコード
import java.util.*;
public class Main {
    public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		for(int i = 0 ; i < t ; i++){
			int[] size = new int[5];
			for(int j = 0 ; j < size.length; j++){
				size[j] = scan.nextInt(); 
			}
			Arrays.sort(size);
			System.out.println(size[4] - size[0]);
		}
    }
}
            
            
            
        