結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2023-01-20 21:11:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 2,103 ms |
コンパイル使用メモリ | 194,580 KB |
最終ジャッジ日時 | 2025-02-10 04:18:41 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; for (int i = a; i <= b; i++) { bool ok = false; if (i % 3 == 0) ok = true; string str = to_string(i); if (find(str.begin(), str.end(), '3') != str.end()) ok = true; if (ok) cout << i << endl; } return 0; }