結果

問題 No.207 世界のなんとか
ユーザー _matumo__matumo_
提出日時 2018-07-24 10:33:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 501 bytes
コンパイル時間 2,235 ms
コンパイル使用メモリ 105,656 KB
実行使用メモリ 23,996 KB
最終ジャッジ日時 2023-09-03 23:45:41
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
21,720 KB
testcase_01 AC 61 ms
21,708 KB
testcase_02 AC 62 ms
23,996 KB
testcase_03 AC 61 ms
23,832 KB
testcase_04 AC 60 ms
23,900 KB
testcase_05 AC 60 ms
21,924 KB
testcase_06 AC 59 ms
23,888 KB
testcase_07 AC 60 ms
21,708 KB
testcase_08 AC 60 ms
21,800 KB
testcase_09 AC 61 ms
21,724 KB
testcase_10 AC 64 ms
23,928 KB
testcase_11 AC 63 ms
21,820 KB
testcase_12 AC 64 ms
21,804 KB
testcase_13 AC 63 ms
23,760 KB
testcase_14 AC 64 ms
23,764 KB
testcase_15 AC 63 ms
23,860 KB
testcase_16 AC 62 ms
21,828 KB
testcase_17 AC 63 ms
21,760 KB
testcase_18 AC 62 ms
23,752 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.Collections.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var vn = Console.ReadLine().Split().Select(int.Parse).ToList();
            for (int i = vn[0]; i <= vn[1]; i++)
            {
                string s = i.ToString();
                if( i%3==0 || s.Any(c=>c=='3'))     Console.WriteLine(s);
            }
            Console.ReadLine();
        }
    }
}
0