結果

問題 No.542 1円玉と5円玉
ユーザー HaijinnHaijinn
提出日時 2017-07-15 16:40:40
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-16 21:48:28
合計ジャッジ時間 696 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 0 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 0 ms
5,376 KB
testcase_04 AC 0 ms
5,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
5,376 KB
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 | scanf("%d%d",&a,&b);
      | ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
int a,b;
int i=0,j;
int x=0;
int z=0;
int c=0;
scanf("%d%d",&a,&b);
for(i=1;i<=a;i++){
	x++;
	printf("%d\n",x);
	
	
	
}

c=1;

for(i=c;i<=b;i++){
z+=5;
if(!(x>=5)){
	
	printf("%d\n",z);
	
}

	for(j=1;j<=a;j++){
		z++;
		if(z>x){
			printf("%d\n",z);
		}
		
		
		
		
	}
	
	
	
	
	
	
}

	return 0;
}
0