結果

問題 No.207 世界のなんとか
ユーザー chizuchizu
提出日時 2018-11-24 19:35:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 496 bytes
コンパイル時間 600 ms
コンパイル使用メモリ 69,240 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-24 19:22:25
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
int main(void){
    int a, b, j, o; cin >> a >> b;
    for(int i = a; i < b; i++){
        j = i + 1;
        if (j % 3 == 0 || j % 10 == 3){
            cout << j << endl;
        }else{
            o = j;
            while (o > 0) {
        		if (o % 10 == 3) {
        			cout << j << endl;
        		}
        		o = o / 10;
        	}
        }
    }
}
0