結果

問題 No.207 世界のなんとか
ユーザー CotaSirogami
提出日時 2019-02-24 20:29:18
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 119,680 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 13:37:12
合計ジャッジ時間 1,083 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int ans = 0;
	int a, b;
	cin >> a >> b;
	int c = a / 10;

	for (int i = a; i <= b; i++) {
		if(a % 10 == 0)
			c = a / 10;
		int d = a - c * 10;
		if ((a % 3 == 0|| c % 3 == 0|| d % 3 == 0))
			cout << a << endl;
	}
}
0