結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2016-02-23 22:21:31 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 521 ms |
| コンパイル使用メモリ | 103,912 KB |
| 最終ジャッジ日時 | 2024-11-14 19:34:43 |
| 合計ジャッジ時間 | 947 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、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)`
ソースコード
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;
}
nak2yoshi