結果

問題 No.207 世界のなんとか
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-02 09:11:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 625 bytes
コンパイル時間 673 ms
コンパイル使用メモリ 108,284 KB
実行使用メモリ 26,144 KB
最終ジャッジ日時 2024-04-19 13:24:58
合計ジャッジ時間 1,685 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
24,032 KB
testcase_01 AC 22 ms
25,948 KB
testcase_02 AC 20 ms
23,960 KB
testcase_03 AC 21 ms
25,884 KB
testcase_04 AC 20 ms
23,780 KB
testcase_05 AC 22 ms
24,036 KB
testcase_06 AC 22 ms
23,904 KB
testcase_07 AC 22 ms
24,096 KB
testcase_08 AC 21 ms
23,904 KB
testcase_09 AC 21 ms
23,912 KB
testcase_10 AC 21 ms
24,040 KB
testcase_11 AC 21 ms
24,160 KB
testcase_12 AC 21 ms
24,240 KB
testcase_13 AC 21 ms
23,776 KB
testcase_14 AC 21 ms
24,108 KB
testcase_15 AC 20 ms
26,144 KB
testcase_16 AC 20 ms
23,908 KB
testcase_17 AC 20 ms
26,076 KB
testcase_18 AC 20 ms
23,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

public class Hello{
    public static void Main(){
        string s = System.Console.ReadLine();
        string[] input = s.Split(' ');
        int a = int.Parse(input[0]);
        int b = int.Parse(input[1]);
        string searchNum = "3";
        
        for(int i = a; i <= b; i++)
        {
            
            if(i % 3 == 0)
            {
                System.Console.WriteLine(i);
                continue;
            }
            
            if(i.ToString().Contains(searchNum))
            {
                System.Console.WriteLine(i);
                continue;
            }

        }
        
    }
}
0