結果

問題 No.207 世界のなんとか
ユーザー TaK7907TaK7907
提出日時 2017-10-09 08:58:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 678 bytes
コンパイル時間 3,602 ms
コンパイル使用メモリ 103,820 KB
実行使用メモリ 22,912 KB
最終ジャッジ日時 2023-08-10 20:50:14
合計ジャッジ時間 5,594 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,776 KB
testcase_01 AC 57 ms
22,912 KB
testcase_02 AC 56 ms
20,876 KB
testcase_03 AC 59 ms
18,828 KB
testcase_04 AC 58 ms
20,716 KB
testcase_05 AC 59 ms
20,832 KB
testcase_06 AC 57 ms
20,836 KB
testcase_07 AC 56 ms
20,780 KB
testcase_08 AC 56 ms
18,756 KB
testcase_09 AC 58 ms
20,968 KB
testcase_10 AC 56 ms
20,820 KB
testcase_11 AC 57 ms
20,868 KB
testcase_12 AC 56 ms
20,772 KB
testcase_13 AC 56 ms
20,892 KB
testcase_14 AC 57 ms
20,780 KB
testcase_15 AC 56 ms
20,920 KB
testcase_16 AC 57 ms
22,904 KB
testcase_17 AC 54 ms
22,744 KB
testcase_18 AC 53 ms
20,836 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;
using System.Linq;

namespace ContestCSharp {
    internal class Program {
        private static void Main() {
            string[] numbers = Console.ReadLine().Split( ' ' );
            UInt32 a, b;
            UInt32.TryParse( numbers[ 0 ], out a );
            UInt32.TryParse( numbers[ 1 ], out b );
            for (var i = a; i <= b; ++i) {
                if (i % 3 == 0) {
                    Console.WriteLine( i );
                } else {
                    if (i.ToString().IndexOf( '3' ) >= 0) {
                        Console.WriteLine( i );
                    }
                }
            }
        }
    }
}
0