結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2019-04-12 15:34:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 1,322 bytes |
コンパイル時間 | 701 ms |
コンパイル使用メモリ | 88,688 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 04:38:26 |
合計ジャッジ時間 | 1,467 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <assert.h>#include <ctype.h>#include <float.h>#include <limits.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <algorithm>#include <bitset>#include <complex>#include <iostream>#include <list>#include <map>#include <numeric>#include <queue>#include <set>#include <sstream>#include <stack>#include <string>#include <unordered_map>#include <unordered_set>#include <vector>using namespace std;#define SZ(a) (int)(a).size()#define FOR(i,a,b) for (int i=(a); i<=(b); ++i)#define REP(i,n) for (int i=0; i<(n); ++i)#define ALL(c) c.begin(), c.end()#define CLR(c,n) memset(c, n, sizeof(c))#define MCPY(d, s) memcpy(d, s, sizeof(d))#define TR(it, c) for (auto it = c.begin();it != c.end(); ++it)#define CONTAIN(it, c) (c.find(it) != c.end())typedef vector<int> VI;typedef pair<int, int> PII;template <class T> void checkmin(T &a, T b) { if (b<a) a=b; }template <class T> void checkmax(T &a, T b) { if (b>a) a=b; }typedef long long LL;const int INF=0x3F3F3F3F;bool check(int n) {if (n % 3 == 0) return true;while (n) {if (n % 10 == 3) return true;n /= 10;}return false;}int main(int argc, char *argv[]) {int a, b;while (cin >> a >> b) {FOR(i, a, b) if (check(i)) cout << i << endl;}}