結果

問題 No.207 世界のなんとか
ユーザー cccccc
提出日時 2022-07-14 17:07:29
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 459 bytes
コンパイル時間 6,901 ms
コンパイル使用メモリ 145,900 KB
実行使用メモリ 161,936 KB
最終ジャッジ日時 2023-09-08 07:28:09
合計ジャッジ時間 8,763 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
28,620 KB
testcase_01 AC 50 ms
28,588 KB
testcase_02 AC 50 ms
28,740 KB
testcase_03 AC 49 ms
28,492 KB
testcase_04 AC 51 ms
30,644 KB
testcase_05 AC 50 ms
28,460 KB
testcase_06 AC 50 ms
28,760 KB
testcase_07 AC 49 ms
30,484 KB
testcase_08 AC 50 ms
28,852 KB
testcase_09 AC 51 ms
28,652 KB
testcase_10 AC 50 ms
28,744 KB
testcase_11 AC 49 ms
28,564 KB
testcase_12 AC 50 ms
28,436 KB
testcase_13 AC 51 ms
30,712 KB
testcase_14 AC 50 ms
28,704 KB
testcase_15 AC 51 ms
30,548 KB
testcase_16 AC 50 ms
28,420 KB
testcase_17 AC 51 ms
28,568 KB
testcase_18 AC 50 ms
161,936 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 120 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()
    {
        var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
        for(var i = l[0]; i <= l[1]; i++)
        {
            string st = i.ToString();

            if(i % 3 == 0)
            {
                 Console.WriteLine(i);
            }
            else if (st.Contains("3"))
            {
                Console.WriteLine(st);
            }
        }
    }
}
0