結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2020-08-02 17:53:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 493 bytes |
コンパイル時間 | 1,633 ms |
コンパイル使用メモリ | 167,228 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 03:40:13 |
合計ジャッジ時間 | 2,452 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #define INF 2000000000000000000 #define ll long long #define pll pair<ll, ll> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll A, B; cin >> A >> B; for (ll i = A; i <= B; ++i) { string si = to_string(i); if (i % 3 == 0) { cout << i << "\n"; } else { for (ll j = 0; j < si.size(); ++j) { if (si.at(j) == '3') { cout << i << "\n"; break; } } } } }