結果

問題 No.542 1円玉と5円玉
コンテスト
ユーザー Haijinn
提出日時 2017-07-15 16:40:40
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 363 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 156 ms
コンパイル使用メモリ 37,080 KB
最終ジャッジ日時 2026-02-24 00:48:39
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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