結果

問題 No.207 世界のなんとか
ユーザー yurarayurara
提出日時 2019-04-14 00:46:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 3,907 ms
コンパイル使用メモリ 106,124 KB
実行使用メモリ 24,100 KB
最終ジャッジ日時 2023-10-13 14:43:27
合計ジャッジ時間 4,573 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
22,096 KB
testcase_01 AC 69 ms
21,996 KB
testcase_02 AC 69 ms
23,952 KB
testcase_03 AC 68 ms
21,980 KB
testcase_04 AC 68 ms
20,108 KB
testcase_05 AC 69 ms
24,100 KB
testcase_06 AC 68 ms
19,896 KB
testcase_07 AC 67 ms
23,988 KB
testcase_08 AC 70 ms
23,976 KB
testcase_09 AC 69 ms
24,048 KB
testcase_10 AC 68 ms
20,016 KB
testcase_11 AC 68 ms
22,084 KB
testcase_12 AC 70 ms
21,960 KB
testcase_13 AC 68 ms
23,896 KB
testcase_14 AC 69 ms
24,032 KB
testcase_15 AC 69 ms
22,016 KB
testcase_16 AC 68 ms
23,956 KB
testcase_17 AC 65 ms
21,860 KB
testcase_18 AC 62 ms
21,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class Program
{
    public static void Main()
    {
        var input = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList();
        Enumerable.Range(input[0], input[1] - input[0] + 1)
            .Where(x => x % 3 == 0 || x.ToString().IndexOf('3') >= 0).ToList()
            .ForEach(x => { Console.WriteLine("{0}", x); });
        return;
    }
}
0