結果

問題 No.207 世界のなんとか
ユーザー yui-taryui-tar
提出日時 2021-03-24 20:25:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 394 bytes
コンパイル時間 2,073 ms
コンパイル使用メモリ 103,800 KB
実行使用メモリ 22,848 KB
最終ジャッジ日時 2023-08-17 22:33:04
合計ジャッジ時間 4,141 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,708 KB
testcase_01 AC 60 ms
22,784 KB
testcase_02 AC 59 ms
20,628 KB
testcase_03 AC 59 ms
20,872 KB
testcase_04 AC 58 ms
20,740 KB
testcase_05 AC 58 ms
20,692 KB
testcase_06 AC 58 ms
22,776 KB
testcase_07 AC 58 ms
22,836 KB
testcase_08 AC 58 ms
20,892 KB
testcase_09 AC 58 ms
18,700 KB
testcase_10 AC 58 ms
20,744 KB
testcase_11 AC 58 ms
20,884 KB
testcase_12 AC 59 ms
20,820 KB
testcase_13 AC 59 ms
20,752 KB
testcase_14 AC 58 ms
18,728 KB
testcase_15 AC 59 ms
20,880 KB
testcase_16 AC 58 ms
20,892 KB
testcase_17 AC 59 ms
22,848 KB
testcase_18 AC 57 ms
20,696 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class Sample
{
    public static void Main()
    {
        string str = Console.ReadLine();
        string[] st = str.Split(" ");
        int a = int.Parse(st[0]);
        int b = int.Parse(st[1]);
        for(int i = a; i <= b; i++)
        {
            if(i%3==0 || i.ToString().Contains("3"))
            {
                Console.WriteLine(i);
            }
        }
    }
}
0