結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2019-01-27 18:44:35 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 295 bytes | 
| コンパイル時間 | 537 ms | 
| コンパイル使用メモリ | 54,744 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-25 00:23:27 | 
| 合計ジャッジ時間 | 1,361 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
#include <iostream>
using namespace std;
bool findthree(int n){
  while(n > 0){
    if(n % 10 == 3){
      return true;
    }
    n/=10;
  }
  return false;
}
int main(){
  int a,b;cin>>a>>b;
  for(int i = a; b >= i; i++){
    if(i % 3 == 0 || findthree(i)){
      cout << i << endl;
    }
  }
}