結果

問題 No.207 世界のなんとか
ユーザー agis
提出日時 2017-03-27 21:30:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 56,256 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 12:20:22
合計ジャッジ時間 965 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

using namespace std;

int main() {
	int A, B;
	cin >> A >> B;

	while (A != B) {
		if (A % 3 == 0) {
			cout << A << endl;
		}
		else {
			int a = A;
			while (a != 0) {
				if (a % 10 == 3) {
					cout << A << endl;
					break;
				}
				a = a / 10;
			}
		}
		A++;
	}
	return 0;
}
0