結果

問題 No.32 貯金箱の憂鬱
ユーザー d_nishiyama85d_nishiyama85
提出日時 2015-05-01 22:30:57
言語 PHP
(8.3.4)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 810 ms
コンパイル使用メモリ 16,556 KB
実行使用メモリ 17,060 KB
最終ジャッジ日時 2023-09-30 07:50:04
合計ジャッジ時間 1,683 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
16,904 KB
testcase_01 AC 14 ms
16,904 KB
testcase_02 AC 14 ms
16,804 KB
testcase_03 AC 15 ms
16,900 KB
testcase_04 AC 15 ms
16,912 KB
testcase_05 AC 15 ms
16,712 KB
testcase_06 AC 15 ms
16,892 KB
testcase_07 AC 15 ms
16,724 KB
testcase_08 AC 14 ms
16,696 KB
testcase_09 AC 15 ms
17,060 KB
testcase_10 AC 15 ms
16,892 KB
testcase_11 AC 15 ms
16,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$L = trim(fgets(STDIN));
$M = trim(fgets(STDIN));
$N = trim(fgets(STDIN));

$total = 100 * $L +  25 * $M + $N;

$t = intval($total / 1000);

$total %= 1000;

$m = intval($total / 100);

$total %= 100;

$q = intval($total / 25);

$total %= 25;

echo ($m + $q + $total) . "\n";
0