結果

問題 No.207 世界のなんとか
ユーザー T.Stream
提出日時 2020-04-14 10:43:59
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 925 ms
コンパイル使用メモリ 66,304 KB
最終ジャッジ日時 2025-01-09 18:30:19
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	long a,b,i,cur;
	cin >> a >> b;
	for(i=a; i<=b; i++){
		if(i%3==0){
			cout << i << endl;
		}else{
			cur=i;
			while(cur>0){
				if(cur%10==3){
					cout << i << endl;
					cur=0;
				}else{
					cur/=10;
				}
			}
		}
	}
	return 0;
}
0