結果
問題 |
No.1131 Deviation Score
|
ユーザー |
![]() |
提出日時 | 2020-08-17 22:10:04 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 645 bytes |
コンパイル時間 | 3,019 ms |
コンパイル使用メモリ | 74,680 KB |
実行使用メモリ | 59,436 KB |
最終ジャッジ日時 | 2024-10-11 11:23:48 |
合計ジャッジ時間 | 19,614 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; float 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 = (int)(50 - (avg - points.get(i))/2); System.out.println(hensachi); } } }