結果

問題 No.365 ジェンガソート
ユーザー mencottonmencotton
提出日時 2018-02-19 23:22:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 2,028 ms
コンパイル使用メモリ 99,580 KB
実行使用メモリ 29,800 KB
最終ジャッジ日時 2023-09-23 03:40:16
合計ジャッジ時間 6,965 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,696 KB
testcase_01 AC 61 ms
21,624 KB
testcase_02 AC 61 ms
23,548 KB
testcase_03 AC 60 ms
19,556 KB
testcase_04 AC 61 ms
23,612 KB
testcase_05 AC 61 ms
21,516 KB
testcase_06 AC 61 ms
21,572 KB
testcase_07 AC 62 ms
23,568 KB
testcase_08 AC 62 ms
21,668 KB
testcase_09 AC 61 ms
21,596 KB
testcase_10 AC 61 ms
19,616 KB
testcase_11 AC 61 ms
21,632 KB
testcase_12 AC 62 ms
23,604 KB
testcase_13 AC 61 ms
23,636 KB
testcase_14 AC 62 ms
21,520 KB
testcase_15 AC 62 ms
21,716 KB
testcase_16 AC 94 ms
26,900 KB
testcase_17 AC 98 ms
25,624 KB
testcase_18 AC 72 ms
24,068 KB
testcase_19 AC 98 ms
27,464 KB
testcase_20 AC 77 ms
22,616 KB
testcase_21 AC 75 ms
22,640 KB
testcase_22 AC 93 ms
28,940 KB
testcase_23 AC 82 ms
23,492 KB
testcase_24 AC 93 ms
26,696 KB
testcase_25 AC 77 ms
24,684 KB
testcase_26 AC 87 ms
23,548 KB
testcase_27 AC 100 ms
27,740 KB
testcase_28 AC 86 ms
23,672 KB
testcase_29 AC 96 ms
27,376 KB
testcase_30 AC 87 ms
23,708 KB
testcase_31 AC 77 ms
22,472 KB
testcase_32 AC 77 ms
22,720 KB
testcase_33 AC 99 ms
25,460 KB
testcase_34 AC 74 ms
20,484 KB
testcase_35 AC 95 ms
26,804 KB
testcase_36 AC 99 ms
29,780 KB
testcase_37 AC 99 ms
27,728 KB
testcase_38 AC 100 ms
29,800 KB
testcase_39 AC 99 ms
29,724 KB
testcase_40 AC 98 ms
25,712 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.Linq;

namespace _365
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Reverse(x);
            int a = n;
            for (int i = 0; i < n; i++)
            {
                if (x[i] == a) a--;
            }
            Console.WriteLine(a);
        }
    }
}
0