結果

問題 No.32 貯金箱の憂鬱
ユーザー
提出日時 2016-01-20 17:14:34
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 32,748 KB
実行使用メモリ 32,872 KB
最終ジャッジ日時 2023-10-21 13:35:16
合計ジャッジ時間 1,560 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php

for($i = 0; $i < 3; $i ++){
    $in = trim(fgets(STDIN));
    $input[$i] = $in;
}

$countAll = 0;

$en1 = $input[0];

$en1Amari = $en1 % 25;
$countAll += $en1Amari;
$en1Tasu = floor($en1 / 25);
$input[1] += $en1Tasu;

$en25 = $input[1] * 25;

$en25Amari = $en25 % 100;
$en25Tasu = floor($en25Amari / 25);
$countAll += $en25Tasu;
$en25AllTasu = floor($en25 / 100);
$input[2] += $en25AllTasu;
$en100 = $input[2] * 100;

$en100Tasu = floor($en100 % 1000);
$en100AllTasu = $en100Tasu / 100;
$countAll += $en100AllTasu;

echo $countAll;
0