結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2016-09-15 17:30:04 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 825 ms |
コンパイル使用メモリ | 116,608 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 04:25:11 |
合計ジャッジ時間 | 1,629 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import std.algorithm, std.array, std.container, std.range, std.bitmanip;import std.numeric, std.math, std.bigint, std.random, core.bitop;import std.string, std.regex, std.conv, std.stdio, std.typecons;void main(){auto rd = readln.split.map!(to!int);auto a = rd[0], b = rd[1];foreach (i; a..b+1)if (i % 3 == 0 || include3(i))writeln(i);}bool include3(int n){for (; n > 0; n /= 10)if (n % 10 == 3) return true;return false;}