結果

問題 No.56 消費税
ユーザー kachipan
提出日時 2023-06-22 16:08:23
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 29,440 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-29 23:15:02
合計ジャッジ時間 787 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 18 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main()
{
	int n = 0;
	int x = 0;
	int ans = 0;
	double zeiritsu = 0;
	double zei = 0;
	scanf("%d", &n);
	scanf("%d", &x);

	zeiritsu = x / 100.0f;
	zei = n * zeiritsu;

	printf("%d", n + (int)zei);

	return 0;
}
0