結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2024-06-02 08:46:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 548 bytes |
コンパイル時間 | 1,653 ms |
コンパイル使用メモリ | 167,944 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 04:06:21 |
合計ジャッジ時間 | 2,243 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ill = int long long; #define rep(i, n) for (ill i = 0; i < (n); i++) #define all(s) s.begin(), s.end() using inp = pair<int, int>; using vecb = vector<bool>; using vecb2 = vector<vecb>; int main() { int a, b; cin >> a >> b; while (a <= b) { string s = to_string(a); if (find(s.begin(), s.end(), '3') != s.end()) { cout << a << endl; } else if (a % 3 == 0) { cout << a << endl; } a++; } }