結果

問題 No.207 世界のなんとか
ユーザー mattun_sec
提出日時 2017-05-17 01:19:55
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 10:41:45
合計ジャッジ時間 832 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main(void) {
	int a, b;
	
	scanf("%d %d", &a, &b);

	char str[10];
	for(; a<=b; a++) {
		sprintf(str,"%d",a);
		if(a % 3 == 0) 
			printf("%d\n", a);

		else if(strstr(str,"3") != NULL)
			printf("%d\n", a);

	}

	return 0;
}
0