結果

問題 No.365 ジェンガソート
ユーザー zmirezzmirez
提出日時 2018-08-26 11:45:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 628 bytes
コンパイル時間 3,615 ms
コンパイル使用メモリ 100,768 KB
実行使用メモリ 28,920 KB
最終ジャッジ日時 2023-09-11 01:41:04
合計ジャッジ時間 7,978 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,720 KB
testcase_01 AC 55 ms
20,752 KB
testcase_02 AC 56 ms
20,760 KB
testcase_03 AC 56 ms
22,648 KB
testcase_04 AC 56 ms
18,620 KB
testcase_05 AC 57 ms
20,732 KB
testcase_06 AC 56 ms
20,668 KB
testcase_07 AC 56 ms
20,608 KB
testcase_08 AC 57 ms
20,768 KB
testcase_09 AC 57 ms
22,724 KB
testcase_10 AC 57 ms
22,652 KB
testcase_11 AC 57 ms
22,792 KB
testcase_12 AC 56 ms
20,680 KB
testcase_13 AC 57 ms
22,780 KB
testcase_14 AC 58 ms
20,620 KB
testcase_15 AC 57 ms
20,608 KB
testcase_16 AC 87 ms
26,020 KB
testcase_17 AC 91 ms
28,744 KB
testcase_18 AC 66 ms
21,316 KB
testcase_19 AC 93 ms
28,604 KB
testcase_20 AC 72 ms
21,736 KB
testcase_21 AC 72 ms
21,824 KB
testcase_22 AC 86 ms
25,996 KB
testcase_23 AC 79 ms
24,652 KB
testcase_24 AC 86 ms
27,892 KB
testcase_25 AC 72 ms
23,964 KB
testcase_26 AC 80 ms
22,884 KB
testcase_27 AC 91 ms
26,808 KB
testcase_28 AC 80 ms
22,788 KB
testcase_29 AC 91 ms
28,512 KB
testcase_30 AC 82 ms
24,908 KB
testcase_31 AC 72 ms
23,680 KB
testcase_32 AC 72 ms
23,864 KB
testcase_33 AC 92 ms
24,728 KB
testcase_34 AC 69 ms
23,588 KB
testcase_35 AC 87 ms
25,880 KB
testcase_36 AC 91 ms
28,920 KB
testcase_37 AC 93 ms
28,920 KB
testcase_38 AC 93 ms
27,040 KB
testcase_39 AC 92 ms
24,996 KB
testcase_40 AC 93 ms
28,908 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
 class Program{
     static void Main(string[]args){
         int N=int.Parse(Console.ReadLine());
         string[]t=Console.ReadLine().Split(' ');
         int[]a=new int[N];
         int count=0;
         int y=0;
         int max=0;
         for(int i=0;i<N;i++){
             a[i]=int.Parse(t[i]);
         }
         for(int i=0;i<N;i++){
             if(y<a[i]){
                 y=a[i];
             }else{
                 max=Math.Max(max,a[i]);
             }
         }
         for(int i=0;i<N;i++){
             if(a[i]<=max)count++;
         }
         Console.WriteLine(count);

         
     }
 }
0