結果

問題 No.207 世界のなんとか
ユーザー paragraph14paragraph14
提出日時 2016-03-27 08:47:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 23 ms / 5,000 ms
コード長 1,303 bytes
コンパイル時間 954 ms
コンパイル使用メモリ 112,212 KB
実行使用メモリ 26,176 KB
最終ジャッジ日時 2024-04-17 16:41:14
合計ジャッジ時間 1,658 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
22,196 KB
testcase_01 AC 20 ms
23,948 KB
testcase_02 AC 21 ms
22,068 KB
testcase_03 AC 23 ms
23,816 KB
testcase_04 AC 20 ms
24,128 KB
testcase_05 AC 20 ms
23,980 KB
testcase_06 AC 20 ms
26,168 KB
testcase_07 AC 20 ms
26,052 KB
testcase_08 AC 20 ms
25,912 KB
testcase_09 AC 19 ms
22,068 KB
testcase_10 AC 20 ms
24,260 KB
testcase_11 AC 21 ms
24,248 KB
testcase_12 AC 21 ms
25,988 KB
testcase_13 AC 21 ms
25,864 KB
testcase_14 AC 21 ms
26,176 KB
testcase_15 AC 20 ms
23,984 KB
testcase_16 AC 19 ms
24,112 KB
testcase_17 AC 20 ms
25,904 KB
testcase_18 AC 20 ms
23,824 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.Collections.Generic;
using System.Text;

public class Program
{
    public void Proc(){
        Reader.IsDebug = false;
        
        int[] inpt = Reader.GetInt();
        for(int i=inpt[0]; i<=inpt[1]; i++) {
            string str = i.ToString("######################0");
            if(i % 3 == 0 || str.IndexOf('3') >= 0) {
                Console.WriteLine(i.ToString("#########################0"));
            }
        }
    }

    public static void Main(string[] args)
    {
        Program prg = new Program();
        prg.Proc();
    }
}

class Reader
{
    public static bool IsDebug = true;
    
    private static System.IO.StringReader sr;
    
    public static string ReadLine() {
        if(IsDebug) {
            if(sr == null) {
                sr = new System.IO.StringReader(initStr.Trim());
            }
            return sr.ReadLine();
        } else {
            return Console.ReadLine();
        }
    }
    
    public static int[] GetInt(char delimiter = ' ') {
        string[] inpt = ReadLine().Split(delimiter);
        int[] ret = new int[inpt.Length];
        for(int i=0; i<inpt.Length; i++) {
            ret[i] = int.Parse(inpt[i]);
        }
        return ret;
    }
    
    private static string initStr = @"


30 40

    ";
}

0