結果
問題 |
No.56 消費税
|
ユーザー |
![]() |
提出日時 | 2025-03-03 11:48:55 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 1,090 ms |
コンパイル使用メモリ | 25,088 KB |
実行使用メモリ | 8,612 KB |
最終ジャッジ日時 | 2025-03-03 11:49:43 |
合計ジャッジ時間 | 1,542 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 23 |
ソースコード
#include <stdio.h> void main(void){ double a = 0 , b = 0; int inputA = scanf("%le",&a); if(inputA == 2){ printf("Aの入力エラー\n"); } int inputB = scanf("%le\n",&b); if(inputB == 2){ printf("Bの入力エラー\n"); } double tax = b/100; double sum = a * tax; printf("消費税分:%fユキコダ\n",tax); printf("税込み金額:%1.fユキコダ\n",sum); //printf("%1.f\n",sum); }