結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-03 11:33:28 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 360 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 25,472 KB |
| 実行使用メモリ | 8,612 KB |
| 最終ジャッジ日時 | 2025-03-03 11:34:03 |
| 合計ジャッジ時間 | 2,046 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 1 WA * 19 RE * 3 |
ソースコード
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#define MAX_LEN (256)
void main(void){
int a = 0 , b = 0;
int inputA = scanf("%d",&a);
if(inputA == 2){
printf("Aの入力エラー\n");
}
int inputB = scanf("%d\n",&b);
if(inputB == 2){
printf("Bの入力エラー\n");
}
double tax = 100/b;
double sum = a + tax;
printf("%1.f",sum);
}
Maeda