結果

問題 No.207 世界のなんとか
ユーザー T_Stream
提出日時 2020-04-13 22:58:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 2,012 ms
コンパイル使用メモリ 193,200 KB
最終ジャッジ日時 2025-01-09 18:16:48
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
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