結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
![]() |
提出日時 | 2020-08-09 00:38:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 438 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-02 10:56:50 |
合計ジャッジ時間 | 1,072 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
import collections A = sorted([int(i) for i in input().strip().split(' ')]) c = collections.Counter(A) #print(c.keys()) #print(c[[i for i in c.keys()][0]]) if len(c) == 2: if c.most_common()[0][1] == 3: print('FULL HOUSE') exit(0) elif len(c) == 3: if c.most_common()[0][1] == 3: print('THREE CARD') exit(0) else: print('TWO PAIR') exit(0) elif len(c) == 4: print('ONE PAIR') exit(0) print('NO HAND')