結果

問題 No.504 ゲーム大会(ランキング)
ユーザー mencottonmencotton
提出日時 2018-02-19 16:26:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 517 ms / 2,000 ms
コード長 571 bytes
コンパイル時間 1,861 ms
コンパイル使用メモリ 99,116 KB
実行使用メモリ 26,892 KB
最終ジャッジ日時 2023-09-22 09:17:55
合計ジャッジ時間 7,947 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,628 KB
testcase_01 AC 54 ms
22,676 KB
testcase_02 AC 53 ms
20,808 KB
testcase_03 AC 54 ms
20,692 KB
testcase_04 AC 55 ms
20,832 KB
testcase_05 AC 53 ms
22,692 KB
testcase_06 AC 53 ms
20,720 KB
testcase_07 AC 510 ms
24,920 KB
testcase_08 AC 495 ms
24,808 KB
testcase_09 AC 506 ms
24,780 KB
testcase_10 AC 517 ms
26,892 KB
testcase_11 AC 508 ms
24,784 KB
testcase_12 AC 510 ms
24,784 KB
testcase_13 AC 492 ms
26,848 KB
testcase_14 AC 497 ms
24,872 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _504
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int k = int.Parse(Console.ReadLine()); Console.WriteLine(1);
            int ret = 1;
            for (int i = 1; i < n; i++)
            {
                int x = int.Parse(Console.ReadLine());
                if (x > k) ret++;
                Console.WriteLine(ret);
            }
        }
    }
}
0