結果

問題 No.504 ゲーム大会(ランキング)
ユーザー bluemeganebluemegane
提出日時 2018-09-13 17:09:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 530 ms / 2,000 ms
コード長 542 bytes
コンパイル時間 2,376 ms
コンパイル使用メモリ 103,132 KB
実行使用メモリ 29,708 KB
最終ジャッジ日時 2023-09-13 19:54:57
合計ジャッジ時間 8,587 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,816 KB
testcase_01 AC 58 ms
20,792 KB
testcase_02 AC 58 ms
20,712 KB
testcase_03 AC 59 ms
20,752 KB
testcase_04 AC 59 ms
20,860 KB
testcase_05 AC 58 ms
20,568 KB
testcase_06 AC 56 ms
20,756 KB
testcase_07 AC 519 ms
29,708 KB
testcase_08 AC 508 ms
25,812 KB
testcase_09 AC 505 ms
23,572 KB
testcase_10 AC 508 ms
27,480 KB
testcase_11 AC 515 ms
23,692 KB
testcase_12 AC 524 ms
27,632 KB
testcase_13 AC 503 ms
26,864 KB
testcase_14 AC 530 ms
27,636 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.Text;

public class Hello
{
    public static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        var a = int.Parse(Console.ReadLine().Trim());
        var str = new StringBuilder();
        var count = 1;
        Console.WriteLine(count);
        for (int i = 1; i < n; i++)
        {
            var b = int.Parse(Console.ReadLine().Trim());
            if (b > a) count++;
            str.Append(string.Format("{0}\n", count));
            Console.WriteLine(count);
        }
    }
}
0