結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-04 06:25:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 366 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-16 09:13:42 |
| 合計ジャッジ時間 | 1,294 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 3 |
ソースコード
lst=[0]*14
l=map(int,input().split())
for i in l:
lst[i]+=1
# print(lst[1:])
two,three=0,0
for i in range(1,13):
if lst[i]==2:two+=1
elif lst[i]==3:three=1
# print(two,three)
tmp=(two,three)
# print(tmp)
ans="NO HAND"
if tmp==(1,1):ans="FULL HOUSE"
elif tmp==(0,1):ans="THREE CARD"
elif tmp==(2,0):ans="TWO PAIR"
elif tmp==(1,0):ans="ONE PAIR"
print(ans)