結果

問題 No.207 世界のなんとか
ユーザー pillow
提出日時 2025-07-16 15:53:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 2,338 ms
コンパイル使用メモリ 195,896 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-16 15:53:13
合計ジャッジ時間 2,422 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;

int main() {
    ll a, b;
    cin >> a >> b;
    for (ll i = a; i <= b; i++) {
        string s = to_string(i);
        if (i % 3LL == 0LL)
            cout << i << '\n';
        else if (find(s.begin(), s.end(), 3) != s.end())
            cout << i << '\n';
    }
    return 0;
}
0