結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2019-06-13 23:20:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-15 20:08:08 |
合計ジャッジ時間 | 1,852 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N=int(input()) A=[0 for i in range(12)] E=["ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"] for i in range(N): a=input() for j in range(12): if a==E[j]: A[j]+=1 M=max(A) S=sum(A)-M if M>(S+1): print("NO") else: print("YES")