結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2019-03-21 10:24:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 393 bytes |
コンパイル時間 | 1,533 ms |
コンパイル使用メモリ | 165,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-19 01:26:06 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h>typedef long long ll;const int INF = 1e9;const ll LINF = 1e18;const int MOD = 1e9 + 7;using namespace std;bool check(int x) {if (x % 3 == 0) return true;while (x > 0) {if (x % 10 == 3) return true;x /= 10;}return false;}int main() {int a, b;cin >> a >> b;for (int i = a; i <= b; i++) {if (check(i)) cout << i << endl;}}