結果

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

ソースコード

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")) {
				cout << i << endl;
			}
		}
	}

	return 0;

}
0