結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-09-27 23:32:53 | 
| 言語 | JavaScript  (node v23.5.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 66 ms / 5,000 ms | 
| コード長 | 514 bytes | 
| コンパイル時間 | 30 ms | 
| コンパイル使用メモリ | 6,820 KB | 
| 実行使用メモリ | 39,552 KB | 
| 最終ジャッジ日時 | 2024-10-13 00:42:14 | 
| 合計ジャッジ時間 | 1,859 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
function Main(input) {
  input = input.split(' ');
  let min = parseInt(input[0]);
  let max = parseInt(input[1]);
  function include_3(num) {
    if (num.toString().length >= 2) {
      if (num.toString().indexOf('3') !== -1) {
        return true;
      }
    } else if (num === 3) {
      return true;
    }
  }
  for(var i = min; i <= max; i++) {
    let num = parseInt(i);
    if (num % 3 === 0 || include_3(num)) {
      console.log(num);
    }
  }
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));