結果

問題 No.32 貯金箱の憂鬱
ユーザー PcclaPccla
提出日時 2017-07-13 23:27:08
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 368 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 32,016 KB
実行使用メモリ 32,400 KB
最終ジャッジ日時 2024-04-16 18:39:24
合計ジャッジ時間 1,130 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 44 ms
31,004 KB
testcase_02 WA -
testcase_03 AC 41 ms
31,280 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$m = trim(fgets(STDIN));
$l = trim(fgets(STDIN));

$ex_1   = floor(strval($n / 25));
$ex_25  = floor(strval($m / 4));
$ex_100 = floor(strval($l / 10));

$result_1   = $ex_1 + ($n - ($ex_1 * 25));
$result_25  = $ex_25 + ($m - ($ex_25 * 4));
$result_100 = $ex_100 + ($l - ($ex_100 * 10));

echo $result_1 + $result_25 + $result_100 . "\n";
0