結果

問題 No.504 ゲーム大会(ランキング)
ユーザー akichiakichi
提出日時 2017-08-11 11:34:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 465 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 102,656 KB
実行使用メモリ 21,840 KB
最終ジャッジ日時 2024-04-20 22:14:17
合計ジャッジ時間 5,362 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
17,664 KB
testcase_01 AC 20 ms
17,792 KB
testcase_02 AC 19 ms
17,280 KB
testcase_03 AC 20 ms
17,664 KB
testcase_04 AC 20 ms
17,280 KB
testcase_05 AC 19 ms
17,280 KB
testcase_06 AC 19 ms
17,664 KB
testcase_07 AC 447 ms
21,840 KB
testcase_08 AC 426 ms
21,700 KB
testcase_09 AC 465 ms
21,720 KB
testcase_10 AC 417 ms
21,836 KB
testcase_11 AC 442 ms
21,688 KB
testcase_12 AC 425 ms
21,584 KB
testcase_13 AC 413 ms
21,716 KB
testcase_14 AC 430 ms
21,716 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class Program {
    static void Main() {
        int n = int.Parse(Console.ReadLine());
        int kScore = int.Parse(Console.ReadLine());
        int[] rnkHis = new int[n];
        rnkHis[0] = 1;
        for (int i = 1; i < n; i++) {
            rnkHis[i] = rnkHis[i - 1];
            if (kScore < int.Parse(Console.ReadLine())) rnkHis[i]++;
        }

        for (int j = 0; j < n; j++) {
            Console.WriteLine(rnkHis[j]);
        }
    }
}
0