結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2016-09-30 10:23:02 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 641 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 32,532 KB |
実行使用メモリ | 32,656 KB |
最終ジャッジ日時 | 2024-07-23 02:24:47 |
合計ジャッジ時間 | 1,226 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php$input_lines = trim(fgets(STDIN));$input_lines = str_replace(array("\r\n","\r","\n"), "", $input_lines);do {$tmpStr[] = $input_lines;$input_lines = trim(fgets(STDIN));$input_lines = str_replace(array("\r\n","\r","\n"), "", $input_lines);} while ($input_lines !== "");$tmpVal = $tmpStr[0] * 100;$tmpVal += $tmpStr[1] * 25;$tmpVal += $tmpStr[2];$tmpVal = $tmpVal % 1000;$tmpCnt = floor($tmpVal / 100);$tmpVal = $tmpVal % 100;$tmpCnt += floor($tmpVal / 25);$tmpVal = $tmpVal % 25;$tmpCnt += $tmpVal;echo $tmpCnt;