結果
問題 | No.394 ハーフパイプ(1) |
ユーザー | Taka |
提出日時 | 2016-09-06 17:39:58 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 467 bytes |
コンパイル時間 | 2,909 ms |
コンパイル使用メモリ | 75,496 KB |
実行使用メモリ | 41,492 KB |
最終ジャッジ日時 | 2024-04-27 16:47:14 |
合計ジャッジ時間 | 4,784 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 114 ms
41,400 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 112 ms
41,432 KB |
testcase_10 | WA | - |
ソースコード
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); } }