結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-12-23 03:26:37 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 405 bytes | 
| コンパイル時間 | 789 ms | 
| コンパイル使用メモリ | 76,664 KB | 
| 最終ジャッジ日時 | 2025-01-08 14:06:34 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
typedef long long int ll;
int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	ll a,b; cin >> a >> b;
	for(int i=a;i<=b;i++){
		if(i%3==0){
			cout << i << endl;
		}
		else{
			int j=i;
			while(j){
				if(j%10==3){
					cout << i << endl;
					break;
				}
				else{
					j/=10;
				}
			}
		}
	}
}