結果

問題 No.207 世界のなんとか
ユーザー mrc1031mrc1031
提出日時 2016-10-07 15:12:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 534 bytes
コンパイル時間 752 ms
コンパイル使用メモリ 111,384 KB
実行使用メモリ 26,904 KB
最終ジャッジ日時 2024-05-01 14:47:58
合計ジャッジ時間 1,853 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,580 KB
testcase_01 AC 25 ms
24,988 KB
testcase_02 AC 24 ms
24,544 KB
testcase_03 AC 25 ms
26,840 KB
testcase_04 AC 25 ms
26,892 KB
testcase_05 AC 26 ms
24,808 KB
testcase_06 AC 25 ms
24,840 KB
testcase_07 AC 25 ms
24,800 KB
testcase_08 AC 26 ms
26,904 KB
testcase_09 AC 26 ms
24,880 KB
testcase_10 AC 25 ms
24,672 KB
testcase_11 AC 24 ms
24,712 KB
testcase_12 AC 24 ms
26,840 KB
testcase_13 AC 25 ms
26,836 KB
testcase_14 AC 24 ms
22,708 KB
testcase_15 AC 24 ms
24,624 KB
testcase_16 AC 24 ms
24,672 KB
testcase_17 AC 21 ms
23,988 KB
testcase_18 AC 27 ms
22,964 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace SampleAppCSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string AB = Console.ReadLine();
            int A = int.Parse(AB.Split(' ')[0]);
            int B = int.Parse(AB.Split(' ')[1]);

            for (int num = A; num <= B; num++)
            {
                if (num % 3 == 0)
                    Console.WriteLine(num);
                else if (num.ToString().IndexOf("3") >= 0)
                    Console.WriteLine(num);
            }
        }
    }
}
0