結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2016-07-29 18:19:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 909 bytes |
コンパイル時間 | 723 ms |
コンパイル使用メモリ | 80,288 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 18:31:33 |
合計ジャッジ時間 | 1,442 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #include <string> #include <vector> #include <deque> #include <map> #include <set> #include <cstdio> #include <cctype> #include <cmath> #include <cstdlib> #include <algorithm> #include <functional> #include <iostream> #include <utility> #include <sstream> #include <cstring> #include <bitset> #include <climits> using namespace std; #define AS(arr) (sizeof(arr)/sizeof(arr[0])) #define ALL(c) (c).begin(),(c).end() #define SIZE(a) int((a).size()) #define EACH(it,c) for(__typeof((c).begin()) it=(c).begin();it!=(c).end();++it) #define REP(i,n) for(int i=0;i<(int)n;++i) typedef vector<int> VI; typedef vector<string> VS; typedef long long LL; int main(void){ int A, B; cin >> A >> B; for(int i=A; i<=B; i++) { string s = to_string(i); if(i % 3 == 0 || s.find("3") != string::npos) { cout << i << endl; } } }