結果
問題 | No.349 干支の置き物 |
ユーザー |
![]() |
提出日時 | 2016-03-11 23:23:18 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-11-17 07:24:08 |
合計ジャッジ時間 | 1,568 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
#coding:utf-8 from math import ceil N=input() list=[raw_input() for i in range(N)] s=1 for i in list: if 2 <= list.count(i): s=max(s,list.count(i)) if s <= ceil(N/2.0): print 'YES' else: print 'NO'