結果

問題 No.207 世界のなんとか
ユーザー gedy01221406
提出日時 2019-10-09 21:58:55
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 403 bytes
コンパイル時間 835 ms
コンパイル使用メモリ 68,476 KB
最終ジャッジ日時 2025-01-07 21:23:05
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
//#include <numeric>
//#include <vector>
#include <cstdint>
#include <string>
using namespace std;

int main() {
	int64_t a, b;
	cin >> a >> b;

	for (int64_t i = a; i < b+1; i++) {
		if (i % 3 == 0) {
			cout << i << endl;
		}
		else {
			std::string str;
			str = std::to_string(i);
			
			if (str.find("3") != std::string::npos) {
				cout << i << endl;
			}
		}
	}

	return 0;

}
0