結果

問題 No.1453 手助け
ユーザー pengin_2000
提出日時 2021-07-11 02:12:18
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 02:57:08
合計ジャッジ時間 1,122 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	int a, b, c, d, e;
	scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
	int ans = 0, i;
	for (i = 1; i <= b - c; i++)
	{
		if (i % 10 == 0 && e <= d)
			d -= e;
		ans += d;
	}
	printf("%d\n", ans);
	return 0;
}
0