結果

問題 No.365 ジェンガソート
ユーザー AreTrashAreTrash
提出日時 2016-04-30 16:26:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 847 ms
コンパイル使用メモリ 110,720 KB
実行使用メモリ 32,000 KB
最終ジャッジ日時 2024-04-20 06:49:50
合計ジャッジ時間 3,499 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
26,016 KB
testcase_01 AC 23 ms
23,784 KB
testcase_02 AC 22 ms
26,012 KB
testcase_03 AC 22 ms
25,892 KB
testcase_04 AC 22 ms
23,984 KB
testcase_05 AC 22 ms
23,984 KB
testcase_06 AC 21 ms
21,808 KB
testcase_07 AC 22 ms
23,720 KB
testcase_08 AC 23 ms
23,528 KB
testcase_09 AC 23 ms
23,848 KB
testcase_10 AC 23 ms
26,012 KB
testcase_11 AC 24 ms
25,832 KB
testcase_12 AC 23 ms
23,712 KB
testcase_13 AC 23 ms
23,720 KB
testcase_14 AC 23 ms
23,788 KB
testcase_15 AC 23 ms
23,856 KB
testcase_16 AC 48 ms
31,032 KB
testcase_17 AC 55 ms
29,552 KB
testcase_18 AC 32 ms
24,900 KB
testcase_19 AC 56 ms
29,660 KB
testcase_20 AC 38 ms
25,292 KB
testcase_21 AC 36 ms
25,196 KB
testcase_22 AC 47 ms
29,444 KB
testcase_23 AC 41 ms
27,968 KB
testcase_24 AC 51 ms
31,140 KB
testcase_25 AC 32 ms
25,524 KB
testcase_26 AC 39 ms
26,388 KB
testcase_27 AC 48 ms
27,716 KB
testcase_28 AC 39 ms
28,376 KB
testcase_29 AC 46 ms
29,960 KB
testcase_30 AC 39 ms
26,256 KB
testcase_31 AC 32 ms
27,252 KB
testcase_32 AC 30 ms
23,344 KB
testcase_33 AC 48 ms
29,976 KB
testcase_34 AC 31 ms
25,296 KB
testcase_35 AC 44 ms
29,508 KB
testcase_36 AC 50 ms
29,944 KB
testcase_37 AC 51 ms
32,000 KB
testcase_38 AC 51 ms
30,076 KB
testcase_39 AC 52 ms
29,944 KB
testcase_40 AC 55 ms
29,940 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 No365_1{
    public class Program{
        public static void Main(string[] args){
            Console.ReadLine();
            var an = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);

            var seqMax = 0;
            var repMax = 0;

            foreach(var a in an){
                seqMax = Math.Max(seqMax, a);
                if(a < seqMax) repMax = Math.Max(repMax, a);
            }

            Console.WriteLine(repMax);
        }
    }
}
0