結果

問題 No.504 ゲーム大会(ランキング)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-08-28 00:27:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 489 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 4,110 ms
コンパイル使用メモリ 100,932 KB
実行使用メモリ 26,836 KB
最終ジャッジ日時 2023-09-19 09:46:45
合計ジャッジ時間 7,475 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,612 KB
testcase_01 AC 55 ms
20,628 KB
testcase_02 AC 56 ms
20,640 KB
testcase_03 AC 56 ms
20,696 KB
testcase_04 AC 56 ms
20,688 KB
testcase_05 AC 57 ms
22,732 KB
testcase_06 AC 56 ms
18,700 KB
testcase_07 AC 482 ms
26,836 KB
testcase_08 AC 489 ms
24,728 KB
testcase_09 AC 481 ms
26,820 KB
testcase_10 AC 470 ms
24,788 KB
testcase_11 AC 476 ms
24,860 KB
testcase_12 AC 471 ms
24,736 KB
testcase_13 AC 456 ms
26,704 KB
testcase_14 AC 473 ms
24,880 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class No504{
    static void Main(){
        var count=Int32.Parse(Console.ReadLine())-1;
        var k=Int32.Parse(Console.ReadLine());
        var rank=1;
        Console.WriteLine(rank);
        for(int i=0;i<count;++i){
            if(Int32.Parse(Console.ReadLine())>k) rank++;
            Console.WriteLine(rank);
        }
    }
}
0