結果

問題 No.207 世界のなんとか
ユーザー ひゅーらひゅーら
提出日時 2017-06-19 15:53:51
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 29,056 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 07:43:20
合計ジャッジ時間 804 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#define DEBUG

int main(void){
	int a, b;
	scanf("%d%d", &a, &b);
	for(int i = a; i <= b; i++){
		if(i % 3 == 0){
			printf("%d\n", i);
		}
		else{
			char s[11];
			sprintf(s, "%d", i);
			for(int j = 0; j < 10; j++){
				if(s[j] == '3'){
					printf("%d\n", i);
				}
			}
		}
	}
	return 0;
}
0