結果

問題 No.207 世界のなんとか
ユーザー nak2yoshinak2yoshi
提出日時 2016-02-23 22:21:31
言語 D
(dmd 2.106.1)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 312 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 106,012 KB
最終ジャッジ日時 2024-04-27 02:17:42
合計ジャッジ時間 677 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
Main.d(14): Error: no property `countchars` for `to(a)` of type `string`
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/std/algorithm/iteration.d(1313):        instantiated from here: `FilterResult!(__lambda4, Result)`
Main.d(14):        instantiated from here: `filter!(Result)`

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.algorithm,
       std.bigint;

void main()
{
    auto input = readln.split.to!(uint[]);
    auto A = input[0], B = input[1];

    A.iota(B + 1).filter!(a => a%3==0||a.to!string.countchars("3")>0).each!writeln;
}
0