結果

問題 No.504 ゲーム大会(ランキング)
ユーザー _matumo__matumo_
提出日時 2018-08-27 12:04:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 506 ms / 2,000 ms
コード長 642 bytes
コンパイル時間 2,937 ms
コンパイル使用メモリ 101,980 KB
実行使用メモリ 26,904 KB
最終ジャッジ日時 2023-09-13 19:31:27
合計ジャッジ時間 8,853 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,660 KB
testcase_01 AC 55 ms
20,676 KB
testcase_02 AC 55 ms
22,784 KB
testcase_03 AC 54 ms
20,736 KB
testcase_04 AC 54 ms
22,692 KB
testcase_05 AC 55 ms
22,768 KB
testcase_06 AC 54 ms
20,776 KB
testcase_07 AC 502 ms
26,732 KB
testcase_08 AC 506 ms
26,808 KB
testcase_09 AC 505 ms
26,904 KB
testcase_10 AC 500 ms
26,880 KB
testcase_11 AC 490 ms
26,824 KB
testcase_12 AC 494 ms
24,812 KB
testcase_13 AC 489 ms
24,792 KB
testcase_14 AC 498 ms
24,756 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;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int nn = int.Parse(Console.ReadLine());
            int[] pn = new int[nn];
            for (int i = 0; i < nn; i++)
            {
                pn[i] = int.Parse(Console.ReadLine());
            }
            int mn = 1;
            int my = pn[0];
            for (int i = 0; i < nn; i++)
            {
                if (pn[i] > my) mn++;
                Console.WriteLine(mn);
            }
            Console.ReadLine();
        }
    }
}
0