結果

問題 No.504 ゲーム大会(ランキング)
ユーザー n120aosssssssssn120aosssssssss
提出日時 2017-05-14 17:10:32
言語 PHP
(8.2.11)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 12,116 KB
実行使用メモリ 12,260 KB
最終ジャッジ日時 2023-10-14 10:58:01
合計ジャッジ時間 2,527 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
12,208 KB
testcase_01 AC 6 ms
12,224 KB
testcase_02 AC 6 ms
12,136 KB
testcase_03 AC 6 ms
12,168 KB
testcase_04 AC 6 ms
12,244 KB
testcase_05 AC 6 ms
12,244 KB
testcase_06 AC 6 ms
12,252 KB
testcase_07 AC 162 ms
12,244 KB
testcase_08 AC 165 ms
12,260 KB
testcase_09 AC 160 ms
12,232 KB
testcase_10 AC 161 ms
12,160 KB
testcase_11 AC 166 ms
12,240 KB
testcase_12 AC 157 ms
12,260 KB
testcase_13 AC 155 ms
12,180 KB
testcase_14 AC 162 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $N = trim(fgets(STDIN));
    // K君のスコア
    $kScore = trim(fgets(STDIN));
    $rank = 1;
    printf("$rank\n");
    for($i = 1; $i < $N; $i++) {
    	$tmp = trim(fgets(STDIN));
    	if($kScore < $tmp) $rank++;
    	printf("$rank\n");
    }
    
    
0