結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-08-11 11:34:39 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 474 ms / 2,000 ms | 
| コード長 | 467 bytes | 
| コンパイル時間 | 941 ms | 
| コンパイル使用メモリ | 109,424 KB | 
| 実行使用メモリ | 29,860 KB | 
| 最終ジャッジ日時 | 2024-10-12 20:32:22 | 
| 合計ジャッジ時間 | 6,505 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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]);
        }
    }
}
            
            
            
        