結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kuuso1kuuso1
提出日時 2014-11-28 00:00:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 1,074 bytes
コンパイル時間 2,412 ms
コンパイル使用メモリ 106,728 KB
実行使用メモリ 26,232 KB
最終ジャッジ日時 2023-09-08 14:08:13
合計ジャッジ時間 5,344 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
19,832 KB
testcase_01 AC 86 ms
26,232 KB
testcase_02 AC 58 ms
21,416 KB
testcase_03 AC 59 ms
21,388 KB
testcase_04 AC 60 ms
23,380 KB
testcase_05 AC 86 ms
26,224 KB
testcase_06 AC 58 ms
19,200 KB
testcase_07 AC 58 ms
23,416 KB
testcase_08 AC 58 ms
21,316 KB
testcase_09 AC 59 ms
23,432 KB
testcase_10 AC 59 ms
21,352 KB
testcase_11 AC 58 ms
23,420 KB
testcase_12 AC 60 ms
23,400 KB
testcase_13 AC 58 ms
19,328 KB
testcase_14 AC 79 ms
24,736 KB
testcase_15 AC 72 ms
24,532 KB
testcase_16 AC 82 ms
23,596 KB
testcase_17 AC 71 ms
24,312 KB
testcase_18 AC 81 ms
23,520 KB
testcase_19 AC 77 ms
22,700 KB
testcase_20 AC 88 ms
26,224 KB
testcase_21 AC 67 ms
21,668 KB
testcase_22 AC 75 ms
22,504 KB
testcase_23 AC 87 ms
25,936 KB
testcase_24 AC 89 ms
26,116 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;
using System.Collections;
using System.Collections.Generic;
 
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		int[] His=new int[7];
		for(int i=0;i<N;i++)His[L[i]]++;
		int Max=His.Max();
		for(int i=6;i>=1;i--){
			if(His[i]==Max){
				Console.WriteLine(i);
				return;
			}
		}
		
		
	}
	int N;
	int[] L;
	public Sol(){
		N=ri();
		L=ria();
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0