結果

問題 No.504 ゲーム大会(ランキング)
ユーザー papinianuspapinianus
提出日時 2017-05-11 07:10:17
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 801 ms
コンパイル使用メモリ 12,076 KB
実行使用メモリ 22,592 KB
最終ジャッジ日時 2023-10-13 10:46:23
合計ジャッジ時間 3,086 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$n = trim(fgets((STDIN)));
$nums = [];
for($i = 0; $i < $n; $i++) {
    $nums[] = trim(fgets(STDIN));
}
$k = $nums[0];
sort($nums);
echo array_search($k, $nums) + 1;
echo PHP_EOL;
0