結果
問題 |
No.191 供託金
|
ユーザー |
|
提出日時 | 2017-04-20 16:26:04 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 742 ms |
コンパイル使用メモリ | 101,860 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 18:46:54 |
合計ジャッジ時間 | 1,673 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { auto n = readln.chomp.to!size_t; auto ci = readln.split.to!(int[]); auto s = ci.sum; writeln(ci.count!(c => c * 10 <= s) * 30); }