結果

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

コンパイルメッセージ
Main.d(14): Error: no property `countchars` for `to(a)` of type `string`
/dmd2/linux/bin64/../../src/phobos/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