結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
tetsuzuki1115
|
| 提出日時 | 2017-09-26 21:18:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 760 bytes |
| コンパイル時間 | 652 ms |
| コンパイル使用メモリ | 80,044 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 16:53:02 |
| 合計ジャッジ時間 | 1,417 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;
long long MOD = 1000000007;
int main() {
string S[2][3] = { { "NO HAND", "ONE PAIR", "TWO PAIR" }, { "THREE CARD", "FULL HOUSE", "NONE" } };
int A[13] = {0};
for ( int i = 0; i < 5; i++ ) {
int a;
cin >> a;
a--;
A[a]++;
}
int three = 0;
int two = 0;
for ( int i = 0; i < 13; i++ ) {
if ( A[i] == 2 ) { two++; }
if ( A[i] == 3 ) { three++; }
}
cout << S[three][two] << endl;
return 0;
}
tetsuzuki1115