結果

問題 No.32 貯金箱の憂鬱
ユーザー papinianuspapinianus
提出日時 2016-05-15 01:38:31
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 488 ms
コンパイル使用メモリ 18,732 KB
実行使用メモリ 18,808 KB
最終ジャッジ日時 2023-09-30 08:08:39
合計ジャッジ時間 1,528 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$L = trim(fgets(STDIN)) % 10;
$M = trim(fgets(STDIN)) % 40;
$N = trim(fgets(STDIN)) % 1000;
$sum = ($L*100 + $M*25 + $N) % 1000;
$hun = floor($sum/100);
$quart = floor(($sum % 100) / 25);
$one = $sum % 25;
echo $hun+$quart+$one;
echo PHP_EOL;
0