結果
問題 |
No.191 供託金
|
ユーザー |
|
提出日時 | 2018-06-21 23:41:11 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 141 ms / 5,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 1,993 ms |
コンパイル使用メモリ | 74,116 KB |
実行使用メモリ | 41,560 KB |
最終ジャッジ日時 | 2024-06-30 17:45:50 |
合計ジャッジ時間 | 6,442 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import java.util.Scanner; class no191{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int i,s=0,a=0,c[]=new int[100],n; n=stdIn.nextInt(); for(i=0;i<n;i++) { c[i]=stdIn.nextInt(); s+=c[i]; } for(i=0;i<n;i++) if(c[i]<=s/10) a++; System.out.print(30*a); } }