結果

問題 No.349 干支の置き物
ユーザー savior0222savior0222
提出日時 2016-04-03 16:51:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 607 bytes
コンパイル時間 1,878 ms
コンパイル使用メモリ 103,316 KB
実行使用メモリ 23,652 KB
最終ジャッジ日時 2023-08-10 21:42:43
合計ジャッジ時間 4,731 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
21,348 KB
testcase_01 AC 51 ms
21,460 KB
testcase_02 AC 49 ms
19,344 KB
testcase_03 AC 53 ms
23,500 KB
testcase_04 AC 50 ms
21,440 KB
testcase_05 AC 52 ms
23,528 KB
testcase_06 AC 51 ms
23,556 KB
testcase_07 AC 50 ms
21,620 KB
testcase_08 AC 50 ms
23,540 KB
testcase_09 AC 50 ms
19,560 KB
testcase_10 AC 49 ms
21,496 KB
testcase_11 AC 49 ms
21,668 KB
testcase_12 AC 51 ms
21,404 KB
testcase_13 AC 50 ms
21,512 KB
testcase_14 AC 53 ms
23,552 KB
testcase_15 AC 52 ms
23,568 KB
testcase_16 AC 53 ms
21,532 KB
testcase_17 AC 51 ms
21,504 KB
testcase_18 AC 51 ms
23,464 KB
testcase_19 AC 52 ms
21,444 KB
testcase_20 AC 51 ms
21,504 KB
testcase_21 AC 50 ms
21,504 KB
testcase_22 AC 51 ms
21,544 KB
testcase_23 AC 52 ms
21,352 KB
testcase_24 AC 50 ms
23,556 KB
testcase_25 AC 52 ms
23,528 KB
testcase_26 AC 51 ms
23,580 KB
testcase_27 AC 52 ms
21,416 KB
testcase_28 AC 52 ms
21,472 KB
testcase_29 AC 52 ms
21,408 KB
testcase_30 AC 53 ms
23,652 KB
testcase_31 AC 53 ms
23,528 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.Generic;

namespace program{
	class program{
		static void Main(string[] args){
			var eto = new string[12] {"ne","ushi","tra","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"};
			var cnt = new int[12];
			
			int n = int.Parse(Console.ReadLine());
			for( int i = 0; i < n; i++){
				string str = Console.ReadLine();
			
				for( int j = 0; j < 12; j++){
					if( eto[j] == str ){
						cnt[j]++;
					}
				}			
			}

			if( cnt.Max() <= (n+1) / 2 ){
				Console.WriteLine("YES");
			}
			else{
				Console.WriteLine("NO");
			}
		}
	}
}
0