結果

問題 No.504 ゲーム大会(ランキング)
ユーザー n120aosssssssssn120aosssssssss
提出日時 2017-05-14 16:54:25
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 352 bytes
コンパイル時間 834 ms
コンパイル使用メモリ 12,036 KB
実行使用メモリ 16,572 KB
最終ジャッジ日時 2023-10-14 10:57:42
合計ジャッジ時間 5,060 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
16,544 KB
testcase_01 AC 7 ms
12,260 KB
testcase_02 AC 6 ms
12,360 KB
testcase_03 AC 6 ms
12,248 KB
testcase_04 AC 6 ms
12,284 KB
testcase_05 AC 6 ms
12,324 KB
testcase_06 AC 6 ms
12,232 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $N = trim(fgets(STDIN));
    $scores = array();
    for($i = 1; $i <= $N; $i++) {
    	$scores[] = trim(fgets(STDIN));
    	if($i == 1) {
    		$kScore = $scores[0];
    	}
    	rsort($scores);
    	for($j = 1; $j <= count($scores); $j++) {
    		if($kScore == $scores[$j-1]) {
    			 printf("$j\n");
    			 break;
    		}
    	}
    }
    
0