結果

問題 No.191 供託金
ユーザー masachacomasachaco
提出日時 2015-04-27 05:21:41
言語 PHP
(843.2)
結果
RE  
実行時間 -
コード長 230 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 32,784 KB
最終ジャッジ日時 2024-10-07 15:53:41
合計ジャッジ時間 1,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$stdin = trim(fgets(STDIN));
$input = explode("\r",$stdin);
$p = $input[0];
$s = explode(" ",$input[1]);
$ts = array_sum($s);

$a = 0;
foreach($s as $m){
$m = $m * 1.00;
if(($m/$ts)<=0.100000){
$a += 30;
}
}
echo $a."\r";
?>
0