結果

問題 No.207 世界のなんとか
ユーザー Hidetoshi KamataHidetoshi Kamata
提出日時 2022-05-06 16:40:13
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 454 bytes
コンパイル時間 7,729 ms
コンパイル使用メモリ 144,136 KB
実行使用メモリ 164,924 KB
最終ジャッジ日時 2023-09-19 06:01:50
合計ジャッジ時間 10,051 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
31,168 KB
testcase_01 AC 72 ms
31,392 KB
testcase_02 AC 73 ms
33,276 KB
testcase_03 AC 74 ms
31,392 KB
testcase_04 AC 73 ms
31,008 KB
testcase_05 AC 73 ms
31,304 KB
testcase_06 AC 73 ms
31,012 KB
testcase_07 AC 72 ms
30,916 KB
testcase_08 AC 73 ms
31,168 KB
testcase_09 AC 72 ms
31,172 KB
testcase_10 AC 73 ms
31,460 KB
testcase_11 AC 73 ms
31,172 KB
testcase_12 AC 73 ms
33,388 KB
testcase_13 AC 73 ms
33,144 KB
testcase_14 AC 72 ms
31,192 KB
testcase_15 AC 72 ms
31,464 KB
testcase_16 AC 72 ms
31,276 KB
testcase_17 AC 73 ms
31,140 KB
testcase_18 AC 72 ms
164,924 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 126 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine().Split(" ");
        var from = Convert.ToInt32(input[0]);
        var to = Convert.ToInt32(input[1]);

        foreach (var i in Enumerable.Range(from, to - from + 1))
        {
            if (i.ToString().IndexOf("3") != -1 ||
                i % 3 == 0)
                Console.WriteLine(i.ToString());
        }
    }
}
0