結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-16 15:54:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 442 bytes |
| コンパイル時間 | 1,697 ms |
| コンパイル使用メモリ | 195,896 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-07-16 15:54:57 |
| 合計ジャッジ時間 | 2,702 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#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;
}