結果

問題 No.32 貯金箱の憂鬱
ユーザー
提出日時 2015-10-30 17:35:50
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 803 ms
コンパイル使用メモリ 18,620 KB
実行使用メモリ 19,016 KB
最終ジャッジ日時 2023-10-11 06:01:19
合計ジャッジ時間 1,305 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$i = fgets(STDIN);
$d=fgets(STDIN);
$s=fgets(STDIN);
$n1=0;
$n2=0;
$n3=0;
if($i/40>0){
$n1=$i/40;
}
if($d/25>0){
$n2=$d/25;
}
if($i/100>0){
$n1=$i/100;
$n1=ceil($n1);
}
echo $n1+$n2+$n3;
?>
0