結果

問題 No.207 世界のなんとか
ユーザー meimaruEngineermeimaruEngineer
提出日時 2019-05-13 18:28:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 549 bytes
コンパイル時間 3,014 ms
コンパイル使用メモリ 98,380 KB
実行使用メモリ 23,400 KB
最終ジャッジ日時 2023-09-22 07:00:08
合計ジャッジ時間 5,497 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
21,432 KB
testcase_01 AC 79 ms
21,368 KB
testcase_02 AC 78 ms
21,296 KB
testcase_03 AC 81 ms
21,504 KB
testcase_04 AC 81 ms
23,212 KB
testcase_05 AC 79 ms
23,400 KB
testcase_06 AC 80 ms
21,232 KB
testcase_07 AC 79 ms
21,484 KB
testcase_08 AC 79 ms
21,284 KB
testcase_09 AC 79 ms
23,356 KB
testcase_10 AC 79 ms
21,500 KB
testcase_11 AC 80 ms
23,396 KB
testcase_12 AC 79 ms
21,240 KB
testcase_13 AC 79 ms
21,384 KB
testcase_14 AC 80 ms
23,288 KB
testcase_15 AC 82 ms
21,492 KB
testcase_16 AC 78 ms
19,216 KB
testcase_17 AC 60 ms
22,784 KB
testcase_18 AC 77 ms
21,496 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.Collections.Generic;

class No207
{
    static void Main(string[] args)
    {
        string[] input = Console.ReadLine().Split(' ');
        int a = int.Parse(input[0]);
        int b = int.Parse(input[1]);
        int loopCount = b - a;

        for (int i = 0; i <= loopCount; i++)
        {
            int answer = a + i;
            string str = answer.ToString();
            if ((answer % 3 == 0) || (str.IndexOf("3") >= 0))
            {
                Console.WriteLine(answer);
            }
        }
    }
}
0