結果

問題 No.207 世界のなんとか
ユーザー zmirezzmirez
提出日時 2018-04-27 15:36:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 559 bytes
コンパイル時間 2,054 ms
コンパイル使用メモリ 99,884 KB
実行使用メモリ 24,776 KB
最終ジャッジ日時 2023-09-10 06:09:41
合計ジャッジ時間 4,116 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,684 KB
testcase_01 AC 58 ms
20,672 KB
testcase_02 AC 58 ms
20,640 KB
testcase_03 AC 57 ms
20,708 KB
testcase_04 AC 58 ms
20,832 KB
testcase_05 AC 58 ms
20,672 KB
testcase_06 AC 58 ms
20,728 KB
testcase_07 AC 57 ms
20,748 KB
testcase_08 AC 58 ms
20,640 KB
testcase_09 AC 58 ms
20,624 KB
testcase_10 AC 58 ms
20,664 KB
testcase_11 AC 58 ms
20,740 KB
testcase_12 AC 58 ms
20,628 KB
testcase_13 AC 58 ms
20,672 KB
testcase_14 AC 59 ms
24,776 KB
testcase_15 AC 58 ms
20,832 KB
testcase_16 AC 58 ms
22,712 KB
testcase_17 AC 59 ms
22,728 KB
testcase_18 AC 55 ms
20,724 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 Program4{
    static void Main(string[]args){
        string N=Console.ReadLine();
        string []t=N.Split(' ');
        long A=long.Parse(t[0]);
        long B=long.Parse(t[1]);
        for(long i=A;i<=B;i++){
            if(i%3==0){
                Console.WriteLine(i);
                continue;
            }
            for(long j=i;j>0;j=j/10){
                if(j%10==3){
                    Console.WriteLine(i);
                    break;
                }
            }
        } 


        
     }
}
0