結果
問題 | No.191 供託金 |
ユーザー |
|
提出日時 | 2016-08-31 17:39:52 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 446 bytes |
コンパイル時間 | 917 ms |
コンパイル使用メモリ | 117,344 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 04:02:42 |
合計ジャッジ時間 | 1,550 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import std.algorithm, std.array, std.container, std.range, std.bitmanip; import std.numeric, std.math, std.bigint, std.random; import std.string, std.conv, std.stdio, std.typecons; const auto days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; void main() { auto n = readln.chomp.to!int; auto ci = readln.split.map!(to!int); auto sum = ci.sum; bool calc(int c) { return c * 10 <= sum; } writeln(ci.count!(calc) * 30); }