結果

問題 No.191 供託金
ユーザー papinianuspapinianus
提出日時 2016-07-26 08:52:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 32,276 KB
実行使用メモリ 32,148 KB
最終ジャッジ日時 2024-04-28 08:42:23
合計ジャッジ時間 2,107 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
30,532 KB
testcase_01 AC 34 ms
30,720 KB
testcase_02 AC 34 ms
30,288 KB
testcase_03 AC 33 ms
30,772 KB
testcase_04 AC 36 ms
30,472 KB
testcase_05 AC 35 ms
30,596 KB
testcase_06 AC 33 ms
30,468 KB
testcase_07 AC 34 ms
30,736 KB
testcase_08 AC 34 ms
30,680 KB
testcase_09 AC 34 ms
30,792 KB
testcase_10 AC 37 ms
32,020 KB
testcase_11 AC 37 ms
32,020 KB
testcase_12 AC 35 ms
32,016 KB
testcase_13 AC 37 ms
32,016 KB
testcase_14 AC 35 ms
32,020 KB
testcase_15 AC 37 ms
32,016 KB
testcase_16 AC 35 ms
32,016 KB
testcase_17 AC 34 ms
31,888 KB
testcase_18 AC 36 ms
32,148 KB
testcase_19 AC 36 ms
31,892 KB
testcase_20 AC 37 ms
31,892 KB
testcase_21 AC 35 ms
31,892 KB
testcase_22 AC 35 ms
32,020 KB
testcase_23 AC 35 ms
31,892 KB
testcase_24 AC 35 ms
32,016 KB
testcase_25 AC 36 ms
32,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$null = trim(fgets(STDIN));// Here your code !
$votes = explode(' ',trim(fgets(STDIN)));
$border = array_sum($votes) / 10;
$count = 0;
foreach($votes as $vote) {
    if($vote <= $border) {
        $count++;
    }
}
echo $count*30;
echo PHP_EOL;
0