結果

問題 No.56 消費税
コンテスト
ユーザー Ruizi_Luigi
提出日時 2015-08-05 16:36:40
言語 PHP
(8.5.4)
コンパイル:
php -l _filename_
実行:
php _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 125 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,826 ms
コンパイル使用メモリ 36,620 KB
実行使用メモリ 37,908 KB
最終ジャッジ日時 2026-07-20 09:32:30
合計ジャッジ時間 4,442 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
PHP Deprecated:  Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3

Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3
PHP Deprecated:  Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3

Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3
PHP Deprecated:  Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3

Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 3
No syntax errors detected in Main.php

ソースコード

diff #
raw source code

<?php
list($d, $p) = explode(' ', trim(fgets(STDIN)));
echo ((integer)$d + floor((integer)$d/100*(integer)$p)) . PHP_EOL;
?>
0