結果

問題 No.207 世界のなんとか
ユーザー vanilla
提出日時 2018-04-18 20:28:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 548 ms
コンパイル使用メモリ 63,540 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 04:33:42
合計ジャッジ時間 1,366 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

using namespace std;

bool isThree(int n){
    while(1){
        if(n % 10 == 3){
            return true;
        }
        n /= 10;
    }
}

int main(){
    int A, B;
    cin >> A >> B;
    while(A <= B){
        if(A % 3 == 0 || isThree(A)){
            cout << A << endl;
        }

        A++;
    }

    return 0;
}
0