結果

問題 No.191 供託金
ユーザー EnglishStudytwiEnglishStudytwi
提出日時 2015-05-20 22:04:58
言語 PHP
(8.3.4)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 2,833 ms
コンパイル使用メモリ 30,376 KB
実行使用メモリ 31,272 KB
最終ジャッジ日時 2024-04-28 07:12:25
合計ジャッジ時間 4,722 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
31,056 KB
testcase_01 AC 43 ms
30,648 KB
testcase_02 AC 42 ms
30,840 KB
testcase_03 AC 41 ms
30,908 KB
testcase_04 AC 40 ms
31,060 KB
testcase_05 AC 40 ms
31,252 KB
testcase_06 AC 40 ms
31,116 KB
testcase_07 AC 39 ms
31,048 KB
testcase_08 AC 40 ms
30,952 KB
testcase_09 AC 40 ms
30,900 KB
testcase_10 AC 41 ms
30,936 KB
testcase_11 AC 41 ms
31,072 KB
testcase_12 AC 41 ms
31,244 KB
testcase_13 AC 40 ms
31,200 KB
testcase_14 AC 40 ms
30,856 KB
testcase_15 AC 41 ms
31,008 KB
testcase_16 AC 41 ms
31,244 KB
testcase_17 AC 42 ms
30,964 KB
testcase_18 AC 41 ms
31,008 KB
testcase_19 AC 40 ms
31,028 KB
testcase_20 AC 39 ms
30,876 KB
testcase_21 AC 40 ms
31,244 KB
testcase_22 AC 40 ms
31,180 KB
testcase_23 AC 40 ms
31,036 KB
testcase_24 AC 40 ms
31,272 KB
testcase_25 AC 40 ms
31,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$c = explode(" ", trim(fgets(STDIN)));
$sum = array_sum($c);
$money = 0;

foreach($c as $m){
    if($m <= ($sum / 10) ){
        $money += 30;
    }
}

echo $money."\n";
0