結果

問題 No.32 貯金箱の憂鬱
ユーザー ant2357ant2357
提出日時 2016-03-23 22:40:55
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2024-04-09 21:12:37
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
32,344 KB
testcase_01 WA -
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
$L = 7;
$M = 20;
$N = 10;
$price = $L * 100 + $M * 25 + $N;
$ans = ($price % 1000) / 100;
$ans += ($price % 100) / 25;
$ans += ($price % 25);

echo (floor($ans).PHP_EOL);
0