結果

問題 No.207 世界のなんとか
ユーザー qwrtpsfg
提出日時 2017-08-02 09:11:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 625 bytes
コンパイル時間 760 ms
コンパイル使用メモリ 107,924 KB
実行使用メモリ 26,076 KB
最終ジャッジ日時 2024-10-11 05:48:04
合計ジャッジ時間 1,977 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
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