結果

問題 No.207 世界のなんとか
ユーザー Naoki00712
提出日時 2023-05-30 11:01:41
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-28 11:39:42
合計ジャッジ時間 974 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

	char* find;

	for (int i = a; i <= b; i++)
	{
		char d[12];
		snprintf(d, 3, "%d", i);
		find = strchr(d, '3');
		if (find)
		{
			printf("%d\n", i);
			continue;
		}

		if (i % 3 == 0)
		{
			printf("%d\n", i);
		}
	}

	return 0;
}
0