結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2018-01-03 08:24:22 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 1,081 ms |
コンパイル使用メモリ | 114,500 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 23:19:10 |
合計ジャッジ時間 | 1,703 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 34 |
ソースコード
import std.stdio, std.string, std.conv, std.algorithm, std.numeric; import std.range, std.array, std.math, std.typecons, std.container, core.bitop; void main() { int L = readln.chomp.to!int; readln; readln.split.to!(int[]).sort().cumulativeFold!"a+b".filter!(x => x<=L).count.writeln; }