結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2016-03-11 23:10:38 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 587 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 01:16:31 |
合計ジャッジ時間 | 1,865 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 3 |
ソースコード
eto = {"ne":0,"ushi":0,"tora":0,"u":0,"tatsu":0,"mi":0,"uma":0,"hitsuji":0,"saru":0,"tori":0,"inu":0,"i":0} N = int(raw_input()) for i in range(N): eto[raw_input()] += 1 s = 0 m = 0 for i in eto.keys(): s += eto[i] m = max(m,eto[i]) if m > s / 2: print 'NO' else: print 'YES'