結果

問題 No.207 世界のなんとか
ユーザー A63295
提出日時 2015-12-19 15:11:44
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 16:05:40
合計ジャッジ時間 1,055 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 | scanf("%d%d",&A,&B);
      | ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(void){
int A, B, i, j, c;
scanf("%d%d",&A,&B);

	for ( i = A; i <= B; i++){
		if( 0 == i % 3){
			printf("%d\n",i);
		}
		else{
			for( j = i; j > 0; j = j / 10){
				if ( 3 ==j % 10){
					printf("%d\n",i);
				}
			}
		}
	}
	return 0;
}
0