結果

問題 No.207 世界のなんとか
ユーザー CroweaCrowea
提出日時 2019-01-24 20:00:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 5,000 ms
コード長 431 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 67,844 KB
実行使用メモリ 23,932 KB
最終ジャッジ日時 2023-10-14 09:43:00
合計ジャッジ時間 3,067 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,840 KB
testcase_01 AC 64 ms
21,904 KB
testcase_02 AC 63 ms
21,884 KB
testcase_03 AC 63 ms
21,752 KB
testcase_04 AC 63 ms
21,792 KB
testcase_05 AC 63 ms
23,824 KB
testcase_06 AC 62 ms
21,892 KB
testcase_07 AC 62 ms
21,944 KB
testcase_08 AC 64 ms
23,804 KB
testcase_09 AC 63 ms
23,844 KB
testcase_10 AC 63 ms
21,780 KB
testcase_11 AC 64 ms
21,764 KB
testcase_12 AC 64 ms
23,752 KB
testcase_13 AC 64 ms
21,852 KB
testcase_14 AC 65 ms
23,888 KB
testcase_15 AC 65 ms
23,932 KB
testcase_16 AC 63 ms
21,740 KB
testcase_17 AC 63 ms
19,672 KB
testcase_18 AC 61 ms
21,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
        int A = input[0];
        int B = input[1];

        var list = Enumerable.Range(A, (B - A)+1).ToList();
        list = list.Where(x => x.ToString().Contains("3") || x % 3 == 0).ToList();
        list.ForEach(x => Console.WriteLine(x));
    }
}
0