結果

問題 No.207 世界のなんとか
ユーザー TaK7907TaK7907
提出日時 2017-10-09 08:56:19
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 677 bytes
コンパイル時間 3,642 ms
コンパイル使用メモリ 102,340 KB
実行使用メモリ 22,992 KB
最終ジャッジ日時 2023-08-10 20:52:52
合計ジャッジ時間 5,735 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
18,772 KB
testcase_01 AC 58 ms
20,856 KB
testcase_02 AC 59 ms
20,936 KB
testcase_03 AC 59 ms
21,020 KB
testcase_04 AC 58 ms
22,840 KB
testcase_05 AC 57 ms
20,880 KB
testcase_06 AC 56 ms
20,796 KB
testcase_07 AC 57 ms
21,004 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 57 ms
20,780 KB
testcase_12 AC 60 ms
22,992 KB
testcase_13 WA -
testcase_14 AC 59 ms
22,860 KB
testcase_15 AC 59 ms
22,916 KB
testcase_16 AC 58 ms
20,808 KB
testcase_17 AC 55 ms
20,616 KB
testcase_18 AC 55 ms
20,860 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