結果

問題 No.207 世界のなんとか
ユーザー santasanta
提出日時 2020-07-25 16:31:18
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 589 bytes
コンパイル時間 2,843 ms
コンパイル使用メモリ 104,700 KB
実行使用メモリ 22,900 KB
最終ジャッジ日時 2023-09-09 15:26:00
合計ジャッジ時間 5,112 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
20,980 KB
testcase_01 AC 62 ms
22,900 KB
testcase_02 AC 62 ms
20,844 KB
testcase_03 AC 62 ms
18,888 KB
testcase_04 AC 62 ms
22,820 KB
testcase_05 AC 61 ms
20,784 KB
testcase_06 AC 62 ms
20,960 KB
testcase_07 AC 61 ms
20,976 KB
testcase_08 AC 62 ms
20,776 KB
testcase_09 AC 61 ms
20,780 KB
testcase_10 AC 62 ms
20,828 KB
testcase_11 AC 61 ms
18,796 KB
testcase_12 AC 61 ms
22,748 KB
testcase_13 AC 61 ms
20,792 KB
testcase_14 AC 61 ms
20,912 KB
testcase_15 AC 62 ms
20,804 KB
testcase_16 AC 61 ms
18,780 KB
testcase_17 AC 58 ms
22,732 KB
testcase_18 AC 57 ms
20,672 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.Linq;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var rl = Console.ReadLine().Split(' ');
            var a = int.Parse(rl[0]);
            var b = int.Parse(rl[1]);
            var result = string.Empty;

            for(int i = a; i <= b; i++)
            {
                if(i % 3 == 0 || i.ToString().Contains('3'))
                {
                    Console.WriteLine($"{i}");
                }
            }
            
            //Console.WriteLine($"{result}");
        }
    }
}
0