結果

問題 No.504 ゲーム大会(ランキング)
ユーザー velfare_nagatavelfare_nagata
提出日時 2017-04-28 18:05:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 510 ms / 2,000 ms
コード長 613 bytes
コンパイル時間 2,049 ms
コンパイル使用メモリ 103,736 KB
実行使用メモリ 27,004 KB
最終ジャッジ日時 2023-10-11 19:00:02
合計ジャッジ時間 7,746 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,784 KB
testcase_01 AC 55 ms
20,640 KB
testcase_02 AC 56 ms
20,712 KB
testcase_03 AC 56 ms
20,752 KB
testcase_04 AC 55 ms
20,624 KB
testcase_05 AC 55 ms
20,748 KB
testcase_06 AC 56 ms
22,668 KB
testcase_07 AC 508 ms
22,660 KB
testcase_08 AC 508 ms
26,856 KB
testcase_09 AC 510 ms
26,776 KB
testcase_10 AC 506 ms
26,792 KB
testcase_11 AC 507 ms
26,904 KB
testcase_12 AC 508 ms
24,876 KB
testcase_13 AC 494 ms
26,804 KB
testcase_14 AC 507 ms
27,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace YukiCoder_No504
{
	public class Program
	{
		public static void Main()
		{
			var linePlayerCount = Console.ReadLine();
			if( linePlayerCount == null )
				return;
			var playerCount = int.Parse( linePlayerCount );

			var kScore = -1;
			var kRank = 1;
			for( var i = 0; i < playerCount; i++ )
			{
				var lineScore = Console.ReadLine();
				if( lineScore == null )
					return;
				if( i == 0 )
				{
					kScore = int.Parse( lineScore );
				}
				else
				{
					if( kScore < int.Parse( lineScore ) )
					{
						kRank++;
					}
				}
				Console.WriteLine( kRank );
			}
		}
	}
}
0