結果

問題 No.365 ジェンガソート
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-07-26 17:46:12
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 472 bytes
コンパイル時間 13,389 ms
コンパイル使用メモリ 168,104 KB
実行使用メモリ 196,868 KB
最終ジャッジ日時 2024-04-14 07:19:00
合計ジャッジ時間 13,517 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
30,164 KB
testcase_01 AC 55 ms
29,952 KB
testcase_02 AC 53 ms
29,696 KB
testcase_03 AC 53 ms
30,208 KB
testcase_04 AC 52 ms
29,696 KB
testcase_05 AC 52 ms
30,332 KB
testcase_06 AC 52 ms
30,164 KB
testcase_07 AC 53 ms
30,208 KB
testcase_08 AC 53 ms
30,208 KB
testcase_09 AC 54 ms
29,824 KB
testcase_10 AC 55 ms
29,824 KB
testcase_11 AC 53 ms
30,208 KB
testcase_12 AC 53 ms
29,776 KB
testcase_13 AC 53 ms
30,208 KB
testcase_14 AC 53 ms
29,696 KB
testcase_15 AC 53 ms
30,208 KB
testcase_16 AC 78 ms
38,912 KB
testcase_17 AC 82 ms
40,832 KB
testcase_18 AC 55 ms
30,848 KB
testcase_19 AC 81 ms
41,344 KB
testcase_20 AC 71 ms
34,684 KB
testcase_21 AC 71 ms
33,408 KB
testcase_22 AC 78 ms
38,784 KB
testcase_23 AC 73 ms
35,304 KB
testcase_24 AC 77 ms
38,376 KB
testcase_25 AC 70 ms
33,408 KB
testcase_26 AC 76 ms
38,936 KB
testcase_27 AC 82 ms
41,408 KB
testcase_28 AC 77 ms
39,208 KB
testcase_29 AC 80 ms
39,808 KB
testcase_30 AC 78 ms
39,404 KB
testcase_31 AC 73 ms
34,176 KB
testcase_32 AC 70 ms
33,920 KB
testcase_33 AC 81 ms
41,216 KB
testcase_34 AC 70 ms
33,024 KB
testcase_35 AC 77 ms
38,784 KB
testcase_36 AC 81 ms
41,600 KB
testcase_37 AC 85 ms
41,724 KB
testcase_38 AC 82 ms
41,472 KB
testcase_39 AC 82 ms
41,600 KB
testcase_40 AC 82 ms
196,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (91 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace yukicoder
{
	public class Program
	{
		public static void Main()
		{
			var n = int.Parse(Console.ReadLine());
			var a = Console.ReadLine().Split(' ').Select(value => int.Parse(value)).ToArray();
			var k = n;
			for(var i = 1; i <= n; i++)
            {
                if (a[n - i] == k)
                {
					k--;
                }
            }
			Console.WriteLine(k);
        }
    }
}
0