結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-30 10:23:02 |
| 言語 | PHP (8.5.4) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 5,000 ms |
| コード長 | 641 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 37,632 KB |
| 実行使用メモリ | 37,916 KB |
| 最終ジャッジ日時 | 2026-04-03 12:10:48 |
| 合計ジャッジ時間 | 1,110 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;