結果

問題 No.207 世界のなんとか
ユーザー sanntarohsanntaroh
提出日時 2019-04-24 19:07:07
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 586 bytes
コンパイル時間 1,083 ms
コンパイル使用メモリ 107,008 KB
実行使用メモリ 27,520 KB
最終ジャッジ日時 2024-04-26 05:00:03
合計ジャッジ時間 2,683 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,404 KB
testcase_01 AC 29 ms
25,012 KB
testcase_02 AC 30 ms
27,284 KB
testcase_03 AC 28 ms
25,392 KB
testcase_04 AC 29 ms
27,316 KB
testcase_05 AC 29 ms
25,408 KB
testcase_06 AC 29 ms
25,368 KB
testcase_07 AC 30 ms
27,520 KB
testcase_08 AC 29 ms
27,280 KB
testcase_09 AC 29 ms
25,004 KB
testcase_10 AC 31 ms
27,148 KB
testcase_11 AC 29 ms
27,064 KB
testcase_12 AC 29 ms
25,148 KB
testcase_13 AC 30 ms
25,012 KB
testcase_14 AC 29 ms
27,276 KB
testcase_15 AC 30 ms
23,216 KB
testcase_16 AC 29 ms
25,276 KB
testcase_17 AC 28 ms
27,264 KB
testcase_18 AC 29 ms
25,136 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;
using System.Collections.Generic;

namespace test20190423
{
    class Program
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split(new String[] { " " }, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).ToArray();
            for (int i = ss[0]; i <= ss[1]; i++)
            {
                if (i % 3 == 0) Console.WriteLine(i);
                else if (i.ToString().ToCharArray().Any(x => x == '3')) Console.WriteLine(i);
            }
            Console.ReadLine();
        }
    }
}
0