結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-24 16:58:01 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 16:11:10 |
| 合計ジャッジ時間 | 958 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
#include <stdio.h>
int main()
{
int D,P;
double S;
scanf("%d",&D);
scanf("%d",&P);
printf("%0.f",S=(int)(D * (1 + (P*0.01) ) ));
}