結果

問題 No.207 世界のなんとか
ユーザー #ラス+#ラス+
提出日時 2019-11-07 14:11:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 1,336 bytes
コンパイル時間 2,575 ms
コンパイル使用メモリ 55,148 KB
実行使用メモリ 14,668 KB
最終ジャッジ日時 2023-10-13 02:58:56
合計ジャッジ時間 3,438 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
14,452 KB
testcase_01 AC 57 ms
14,460 KB
testcase_02 AC 58 ms
14,668 KB
testcase_03 AC 57 ms
14,460 KB
testcase_04 AC 57 ms
14,568 KB
testcase_05 AC 57 ms
14,612 KB
testcase_06 AC 57 ms
14,644 KB
testcase_07 AC 57 ms
14,468 KB
testcase_08 AC 58 ms
14,572 KB
testcase_09 AC 57 ms
14,396 KB
testcase_10 AC 57 ms
14,552 KB
testcase_11 AC 56 ms
14,592 KB
testcase_12 AC 57 ms
14,580 KB
testcase_13 AC 57 ms
14,660 KB
testcase_14 AC 58 ms
14,584 KB
testcase_15 AC 57 ms
14,592 KB
testcase_16 AC 57 ms
14,532 KB
testcase_17 AC 57 ms
14,624 KB
testcase_18 AC 55 ms
14,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Start{
  static void Solve(){
    var a=Rint();
    var b=Rint();
    for(int i=a;i<=b;i++){
      var s=""+i;
      bool t=false;
      for(int j=0;j<s.Length;j++)if(s[j]=='3')t=true;
      if(t||i%3==0)Write(s+LF);
    }
  }
  static void Main(){
    readcount=-1;
    read=In.ReadToEnd().Split(' ','\n');
    var sw=new StreamWriter(OpenStandardOutput()){AutoFlush=false};
    SetOut(sw);
    Solve();
    Out.Flush();
  }
  static string Read(){readcount++;return read[readcount];}
  static int Rint(){readcount++;return int.Parse(read[readcount]);}
  static long Rlon(){readcount++;return long.Parse(read[readcount]);}
  static double Rdou(){readcount++;return double.Parse(read[readcount]);}
  static char Rcha(){readcount++;return read[readcount][0];}
  static string[] read;static int readcount;
  const long MOD=1000000007L;
  const string LF="\n";
  static void Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
}
class Pair<T1,T2>:IComparable<Pair<T1,T2>>where T1:IComparable<T1>where T2:IComparable<T2>{
  public T1 F;public T2 S;
  public Pair(T1 f,T2 s){F=f;S=s;}
  public int CompareTo(Pair<T1,T2> p)=>F.CompareTo(p.F)!=0?F.CompareTo(p.F):S.CompareTo(p.S);
  public override string ToString()=>F+" "+S;
}
0