結果

問題 No.349 干支の置き物
ユーザー yamaghyamagh
提出日時 2016-04-10 20:00:33
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-14 23:52:31
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
12,288 KB
testcase_01 AC 89 ms
12,160 KB
testcase_02 AC 88 ms
12,032 KB
testcase_03 AC 88 ms
12,160 KB
testcase_04 AC 88 ms
12,160 KB
testcase_05 AC 92 ms
12,288 KB
testcase_06 AC 88 ms
12,288 KB
testcase_07 AC 89 ms
12,288 KB
testcase_08 AC 89 ms
12,160 KB
testcase_09 AC 87 ms
12,160 KB
testcase_10 AC 89 ms
12,288 KB
testcase_11 AC 89 ms
12,160 KB
testcase_12 AC 89 ms
12,160 KB
testcase_13 AC 87 ms
12,160 KB
testcase_14 AC 89 ms
12,288 KB
testcase_15 AC 88 ms
12,160 KB
testcase_16 AC 87 ms
12,160 KB
testcase_17 AC 88 ms
12,288 KB
testcase_18 WA -
testcase_19 AC 89 ms
12,288 KB
testcase_20 WA -
testcase_21 AC 88 ms
12,288 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 88 ms
12,416 KB
testcase_26 AC 88 ms
12,160 KB
testcase_27 AC 88 ms
12,160 KB
testcase_28 AC 87 ms
12,160 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 87 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
a=Hash.new(0)
$<.read.split(/\n/).map{|l|a[l]+=1}
m=a.max_by(&:last)[1]
puts m < (N/2.0).ceil ? "YES" : "NO"
0