結果

問題 No.207 世界のなんとか
ユーザー YoiTakaYoiTaka
提出日時 2017-02-22 22:38:07
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 523 bytes
コンパイル時間 2,133 ms
コンパイル使用メモリ 99,672 KB
実行使用メモリ 23,372 KB
最終ジャッジ日時 2023-08-29 01:39:11
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
23,332 KB
testcase_01 AC 74 ms
19,120 KB
testcase_02 AC 73 ms
21,380 KB
testcase_03 AC 74 ms
21,256 KB
testcase_04 AC 73 ms
23,324 KB
testcase_05 AC 71 ms
21,288 KB
testcase_06 AC 71 ms
23,344 KB
testcase_07 AC 71 ms
23,372 KB
testcase_08 AC 72 ms
21,320 KB
testcase_09 AC 75 ms
21,236 KB
testcase_10 AC 74 ms
21,168 KB
testcase_11 AC 72 ms
19,196 KB
testcase_12 AC 70 ms
21,300 KB
testcase_13 AC 75 ms
23,216 KB
testcase_14 AC 75 ms
23,316 KB
testcase_15 AC 76 ms
23,208 KB
testcase_16 AC 73 ms
21,336 KB
testcase_17 AC 55 ms
20,652 KB
testcase_18 AC 72 ms
23,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        string line = System.Console.ReadLine().Trim();
        string[] Data = line.Split(' ');
        long A = long.Parse(Data[0]);
        long B = long.Parse(Data[1]);

        for(long i= A;i<= B;i++)
        {
            if(i%3 ==0)
            {
                Console.WriteLine(i);
            }
            else if(i.ToString().IndexOf("3") != -1)
            {
                Console.WriteLine(i);
            }
        }       
    }
}
0