結果

問題 No.207 世界のなんとか
ユーザー itok217itok217
提出日時 2017-04-09 19:19:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 2,791 ms
コンパイル使用メモリ 103,256 KB
実行使用メモリ 23,928 KB
最終ジャッジ日時 2023-09-25 01:28:17
合計ジャッジ時間 4,733 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,892 KB
testcase_01 AC 65 ms
22,028 KB
testcase_02 AC 67 ms
21,892 KB
testcase_03 AC 66 ms
21,916 KB
testcase_04 AC 65 ms
21,808 KB
testcase_05 AC 66 ms
23,928 KB
testcase_06 AC 65 ms
21,852 KB
testcase_07 AC 65 ms
21,888 KB
testcase_08 AC 66 ms
21,812 KB
testcase_09 AC 66 ms
19,828 KB
testcase_10 AC 65 ms
21,872 KB
testcase_11 AC 65 ms
19,844 KB
testcase_12 AC 66 ms
21,848 KB
testcase_13 AC 65 ms
23,924 KB
testcase_14 AC 65 ms
22,036 KB
testcase_15 AC 64 ms
21,920 KB
testcase_16 AC 65 ms
23,884 KB
testcase_17 AC 63 ms
21,996 KB
testcase_18 AC 63 ms
21,800 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;

class Program {
    static void Main() {
        int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var seq = Enumerable.Range(n[0], n[1] - n[0] + 1).Where(x => x % 3 == 0 || x.ToString().Contains("3")).ToList();
        seq.ForEach(Console.WriteLine);
    }
}
0