結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,260 KB
testcase_01 AC 7 ms
12,308 KB
testcase_02 AC 7 ms
12,200 KB
testcase_03 WA -
testcase_04 AC 8 ms
12,252 KB
testcase_05 AC 8 ms
12,264 KB
testcase_06 AC 7 ms
12,176 KB
testcase_07 AC 7 ms
12,304 KB
testcase_08 AC 7 ms
12,268 KB
testcase_09 AC 7 ms
12,196 KB
testcase_10 AC 8 ms
12,256 KB
testcase_11 AC 7 ms
12,188 KB
testcase_12 AC 7 ms
12,256 KB
testcase_13 AC 7 ms
12,264 KB
testcase_14 AC 7 ms
12,200 KB
testcase_15 AC 8 ms
12,204 KB
testcase_16 AC 8 ms
12,180 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 = fgets(STDIN);//商品
$array = explode(" ",$input);
$item = intval($array[0]);
$tax = intval($array[1]);

$taxin_item = floor($item * (1+($tax/100)));
echo $taxin_item.PHP_EOL;
?>
0