結果

問題 No.56 消費税
ユーザー mattun_sec
提出日時 2017-05-20 03:14:04
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 171 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,940 KB
最終ジャッジ日時 2024-09-18 23:09:51
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
	double d,p;

	scanf("%lf %lf", &d, &p);
	
	p *= 0.01;

	int ans;

	ans = (int)d + (int)(d * p);

	printf("%d\n", ans);

	return 0;
}
0