結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | nina1186 |
提出日時 | 2018-04-24 20:40:36 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 8 ms / 5,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 12,124 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2023-09-30 13:09:29 |
合計ジャッジ時間 | 1,015 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 7 ms
12,260 KB |
testcase_01 | AC | 8 ms
12,240 KB |
testcase_02 | AC | 7 ms
12,240 KB |
testcase_03 | AC | 8 ms
12,272 KB |
testcase_04 | AC | 7 ms
12,268 KB |
testcase_05 | AC | 8 ms
12,260 KB |
testcase_06 | AC | 8 ms
12,288 KB |
testcase_07 | AC | 7 ms
12,280 KB |
testcase_08 | AC | 8 ms
12,252 KB |
testcase_09 | AC | 7 ms
12,260 KB |
testcase_10 | AC | 8 ms
12,276 KB |
testcase_11 | AC | 7 ms
12,280 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php fscanf(STDIN, '%d', $L); // 100円L枚 fscanf(STDIN, '%d', $M); // 25円M枚 fscanf(STDIN, '%d', $N); // 1円N枚 $O = 0; // 1000円0枚 function exchange(&$smaller, &$bigger, $bdr){ while($smaller >= $bdr){ $smaller -= $bdr; $bigger++; } } exchange($N, $M, 25); exchange($M, $L, 4); exchange($L, $O, 10); echo $L + $M + $N;