結果
問題 |
No.1131 Deviation Score
|
ユーザー |
|
提出日時 | 2020-08-17 22:37:17 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 636 bytes |
コンパイル時間 | 2,162 ms |
コンパイル使用メモリ | 75,092 KB |
実行使用メモリ | 59,548 KB |
最終ジャッジ日時 | 2024-10-11 11:28:00 |
合計ジャッジ時間 | 18,969 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 20 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int N = in.nextInt(); int point = 0; int sum = 0; int avg = 0; int hensachi = 0; List<Integer> points = new ArrayList<>(); for(int i=0; i<N; i++){ point = in.nextInt(); points.add(point); sum += point; avg = sum / N; } for(int i=0; i<N; i++){ hensachi = 50 - (avg - points.get(i))/2; System.out.println(hensachi); } } }