結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
![]() |
提出日時 | 2020-12-26 09:37:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-24 09:58:17 |
合計ジャッジ時間 | 1,351 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
a=[*map(int,input().split())] cnt=[] for i in set(a): cnt.append(a.count(i)) if 3 in cnt and 2 in cnt: print('FULL HOUSE') elif 3 in cnt: print('THREE CARD') elif 2 in cnt: cnt.pop(cnt.index(2)) if 2 in cnt: print('TWO PAIR') else: print('ONE PAIR') else: print('NO HAND')