結果
問題 |
No.349 干支の置き物
|
ユーザー |
![]() |
提出日時 | 2019-08-15 05:55:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-19 14:47:43 |
合計ジャッジ時間 | 2,042 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 3 |
ソースコード
N=int(input()) Eto=["ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"] A=[input() for i in range(N)] max_cnt=0 for k in Eto: cnt=A.count(k) max_cnt=max(max_cnt,cnt) print("NO" if max_cnt>(N/2) else "YES")