結果

問題 No.207 世界のなんとか
ユーザー streingmust
提出日時 2017-04-09 21:46:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 58,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 01:38:54
合計ジャッジ時間 947 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

int main(void){
	int A, B;
	std::string str;
	std::cin >> A;
	std::cin >> B;
	for(int i=A; i<=B; i++){
		if(i%3 == 0) std::cout << i << std::endl;
		else{
			str = std::to_string(i);
			if(str.find('3')!=std::string::npos){
				std::cout << i << std::endl;
			}
		}
	}
	return 0;
}
0