結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hogeover30
                         | 
                    
| 提出日時 | 2015-10-02 00:48:05 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 286 bytes | 
| コンパイル時間 | 432 ms | 
| コンパイル使用メモリ | 55,208 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-09 10:34:52 | 
| 合計ジャッジ時間 | 1,148 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
#include <iostream>
using namespace std;
bool ok(int n)
{
    if (n%3==0) return true;
    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;i<=b;++i)
        if (ok(i)) cout<<i<<endl;
}
            
            
            
        
            
hogeover30