結果

問題 No.207 世界のなんとか
ユーザー 濱田孝治濱田孝治
提出日時 2020-07-30 15:47:17
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 572 bytes
コンパイル時間 7,181 ms
コンパイル使用メモリ 253,604 KB
実行使用メモリ 42,636 KB
最終ジャッジ日時 2023-09-17 05:05:26
合計ジャッジ時間 10,050 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
42,216 KB
testcase_01 AC 80 ms
42,112 KB
testcase_02 AC 83 ms
42,636 KB
testcase_03 AC 82 ms
42,100 KB
testcase_04 AC 80 ms
42,428 KB
testcase_05 AC 82 ms
42,432 KB
testcase_06 AC 79 ms
42,100 KB
testcase_07 AC 79 ms
42,204 KB
testcase_08 AC 79 ms
42,148 KB
testcase_09 AC 82 ms
42,172 KB
testcase_10 AC 83 ms
42,608 KB
testcase_11 AC 82 ms
42,444 KB
testcase_12 AC 83 ms
42,608 KB
testcase_13 AC 82 ms
42,396 KB
testcase_14 AC 82 ms
42,504 KB
testcase_15 AC 81 ms
42,568 KB
testcase_16 AC 79 ms
42,200 KB
testcase_17 AC 78 ms
42,200 KB
testcase_18 AC 73 ms
42,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input: any) {
  // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。
  const data = input.split("\n");
  const first_line: string = data[0].split(" ");
  const a: number = Number(first_line[0]);
  const b: number = Number(first_line[1]);
  var result: String = "";

  for (let i: number = a; i <= b; i++) {
    if (i.toString().indexOf('3', 0) >= 0 || i % 3 == 0) {
      console.log(i);
    }
  }
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0