結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
Div9851
|
| 提出日時 | 2016-01-06 21:57:01 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 243µs | |
| コード長 | 551 bytes |
| 記録 | |
| コンパイル時間 | 819 ms |
| コンパイル使用メモリ | 175,084 KB |
| 実行使用メモリ | 9,740 KB |
| 最終ジャッジ日時 | 2026-08-31 01:34:49 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int cnt[14];
int main() {
int A;
for(int i=0;i<5;i++) {
scanf("%d",&A);
cnt[A]++;
}
int two=0,three=0;
for(int i=1;i<=13;i++) {
if(cnt[i]==2) two++;
else if(cnt[i]==3) three++;
}
if(two==1&&three==1) {
printf("FULL HOUSE\n");
}else if(three==1) {
printf("THREE CARD\n");
}else if(two==2) {
printf("TWO PAIR\n");
}else if(two==1) {
printf("ONE PAIR\n");
}else {
printf("NO HAND\n");
}
}
Div9851