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