結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2015-09-24 21:01:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 527 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-19 09:03:57 |
合計ジャッジ時間 | 1,216 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 1 |
ソースコード
#!/usr/bin/python3 # This problem is http://yukicoder.me/problems/562 first_line = input() # first_line = '5 6 5 6 5' no_duplication = set(first_line.split(' ')) answer = [] for char in no_duplication: answer.append(len(first_line.split(char)) - 1) answer = sorted(answer) if answer == [2, 3]: print('FULL HOUSE') elif answer == [1, 1, 3]: print('THREE CARD') elif answer == [1, 2, 2]: print('TWO PAIR') elif answer == [1, 1, 1, 2]: print('ONE PAIR') else: print('NO HAND') # print(answer)