結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-20 15:25:57 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 528 bytes |
| コンパイル時間 | 2,604 ms |
| コンパイル使用メモリ | 32,272 KB |
| 実行使用メモリ | 32,788 KB |
| 最終ジャッジ日時 | 2024-09-21 14:47:35 |
| 合計ジャッジ時間 | 3,727 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 9 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
for($i = 0; $i < 3; $i ++){
$in = trim(fgets(STDIN));
$input[$i] = $in;
}
$count1 = $input[0];
$count25 = $input[1];
$count100 = $input[2];
$countAll = 0;
$en1 = floor($count1 / 25);
if($en1 < 1){
$countAll += $count1;
}else{
$count25 += $en1;
}
$en25 = floor($count25 / 4);
if($en25 < 1){
$countAll += $count25;
}else{
$count100 += $en25;
}
$en100 = floor($count100 /10);
$en100Amari = $count100 - ($en100 * 10);
if($en100Amari >= 1){
$countAll += $en100Amari;
}
echo $countAll."\n";