結果

問題 No.504 ゲーム大会(ランキング)
ユーザー ooh_20ooh_20
提出日時 2017-05-29 10:59:17
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 598 bytes
コンパイル時間 858 ms
コンパイル使用メモリ 106,656 KB
実行使用メモリ 27,476 KB
最終ジャッジ日時 2023-10-21 16:48:24
合計ジャッジ時間 4,922 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,072 KB
testcase_01 AC 26 ms
24,068 KB
testcase_02 AC 26 ms
24,068 KB
testcase_03 AC 27 ms
24,068 KB
testcase_04 AC 26 ms
24,068 KB
testcase_05 AC 26 ms
24,068 KB
testcase_06 AC 25 ms
23,948 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No._504
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int K = 0;
            int[] rank = new int[N];

            for (int i = 0; i < N; i++)
            {
                rank[i] = int.Parse(Console.ReadLine());

                if (i == 0)
                {
                    K = rank[0];
                }

                Array.Sort(rank);
                Array.Reverse(rank);

                Console.WriteLine(Array.IndexOf(rank, K) + 1);
            }
        }
    }
}
0