結果

問題 No.56 消費税
ユーザー sato_eventsato_event
提出日時 2019-04-09 15:39:22
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 12,060 KB
実行使用メモリ 12,348 KB
最終ジャッジ日時 2023-09-14 15:52:33
合計ジャッジ時間 1,336 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,244 KB
testcase_01 AC 8 ms
12,300 KB
testcase_02 AC 8 ms
12,304 KB
testcase_03 WA -
testcase_04 AC 7 ms
12,256 KB
testcase_05 AC 8 ms
12,216 KB
testcase_06 AC 7 ms
12,260 KB
testcase_07 AC 7 ms
12,280 KB
testcase_08 AC 7 ms
12,260 KB
testcase_09 AC 7 ms
12,248 KB
testcase_10 AC 8 ms
12,332 KB
testcase_11 AC 8 ms
12,236 KB
testcase_12 AC 8 ms
12,296 KB
testcase_13 AC 7 ms
12,184 KB
testcase_14 AC 8 ms
12,324 KB
testcase_15 AC 7 ms
12,268 KB
testcase_16 AC 7 ms
12,216 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input = explode(" ", fgets(STDIN));
$d = intval($input[0]); //商品価格 D
$p = intval($input[1]); //消費税率 P
$result = $d*(1+$p/100);
echo intval($result).PHP_EOL;
?>
0