結果

問題 No.207 世界のなんとか
ユーザー sasaken555
提出日時 2016-12-20 00:31:48
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 442 bytes
コンパイル時間 34 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 42,564 KB
最終ジャッジ日時 2024-10-13 00:05:01
合計ジャッジ時間 2,145 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

let lines = [];
let reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', function(line) {
  lines.push(line);
});

reader.on('close', function() {
  let firstLine = lines[0].split(" ");
  const A = firstLine[0];
  const B = firstLine[1];

  for(let num = A; num <= B; num++) {
    if(num % 3 == 0 || num.toString(10).indexOf("3") != -1) {
      console.log(num);
    }
  }
});
0