結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー 綾地寧々綾地寧々
提出日時 2015-05-22 23:57:16
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 18,776 KB
実行使用メモリ 25,020 KB
最終ジャッジ日時 2023-09-20 10:09:54
合計ジャッジ時間 1,700 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
18,776 KB
testcase_01 AC 20 ms
25,020 KB
testcase_02 AC 17 ms
18,924 KB
testcase_03 AC 15 ms
18,780 KB
testcase_04 AC 16 ms
18,920 KB
testcase_05 AC 20 ms
24,828 KB
testcase_06 AC 15 ms
18,896 KB
testcase_07 AC 15 ms
18,896 KB
testcase_08 AC 16 ms
18,720 KB
testcase_09 AC 16 ms
18,720 KB
testcase_10 AC 16 ms
18,976 KB
testcase_11 AC 16 ms
18,948 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 18 ms
20,796 KB
testcase_15 AC 17 ms
19,000 KB
testcase_16 AC 20 ms
25,000 KB
testcase_17 AC 17 ms
18,848 KB
testcase_18 AC 20 ms
24,884 KB
testcase_19 AC 18 ms
20,908 KB
testcase_20 AC 21 ms
24,940 KB
testcase_21 AC 16 ms
18,820 KB
testcase_22 AC 18 ms
20,796 KB
testcase_23 AC 21 ms
24,984 KB
testcase_24 AC 21 ms
24,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$users = trim(fgets(STDIN));
$points = explode(" ",trim(fgets(STDIN)));
$p_count = array_count_values($points);
$max = 0;
$max_index = 0;
foreach ( $p_count as $index => $p ) {
	if ( ($p >= $max) ) {
		$max = $p;
		$max_index = $index;
	}
}
echo $max_index.PHP_EOL;
0