結果
問題 | No.191 供託金 |
ユーザー | agatan |
提出日時 | 2015-04-26 22:12:25 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 1,073 ms |
コンパイル使用メモリ | 101,716 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 02:38:43 |
合計ジャッジ時間 | 2,244 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import std.array, std.stdio, std.string, std.algorithm, std.conv; void main() { int N = readln.strip.to!int; long[] C = readln.split.map!(to!long).array; long sum = C.reduce!"a + b"; writeln(C.filter!(a => a <= sum / 10).count * 30); }