結果

問題 No.365 ジェンガソート
ユーザー mencottonmencotton
提出日時 2018-02-19 23:21:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 450 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 100,020 KB
実行使用メモリ 31,840 KB
最終ジャッジ日時 2023-09-23 03:40:05
合計ジャッジ時間 7,111 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 63 ms
21,564 KB
testcase_02 WA -
testcase_03 AC 62 ms
21,492 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 62 ms
23,548 KB
testcase_11 WA -
testcase_12 AC 63 ms
21,628 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 77 ms
22,632 KB
testcase_22 AC 93 ms
26,844 KB
testcase_23 AC 82 ms
23,604 KB
testcase_24 AC 93 ms
26,840 KB
testcase_25 AC 77 ms
22,612 KB
testcase_26 WA -
testcase_27 AC 101 ms
29,692 KB
testcase_28 AC 89 ms
25,696 KB
testcase_29 AC 100 ms
29,340 KB
testcase_30 AC 88 ms
25,800 KB
testcase_31 AC 76 ms
20,532 KB
testcase_32 AC 77 ms
22,708 KB
testcase_33 AC 101 ms
25,628 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 100 ms
29,788 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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] == n) a--;
            }
            Console.WriteLine(a);
        }
    }
}
0