結果
問題 |
No.394 ハーフパイプ(1)
|
ユーザー |
|
提出日時 | 2016-09-06 17:39:58 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 467 bytes |
コンパイル時間 | 3,563 ms |
コンパイル使用メモリ | 74,808 KB |
実行使用メモリ | 54,420 KB |
最終ジャッジ日時 | 2024-11-15 20:36:41 |
合計ジャッジ時間 | 5,269 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 9 |
ソースコード
import java.util.Scanner; import java.util.Arrays; public class a{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); int d=sc.nextInt(); int e=sc.nextInt(); int f=sc.nextInt(); double score=0; int[] num = {a, b, c, d, e, f}; Arrays.sort(num); for(int i=1; i<=4; i++){ score+=num[i]; } System.out.println(score/4); } }