結果
問題 | No.227 簡単ポーカー |
ユーザー | meshedgear |
提出日時 | 2015-06-21 17:09:01 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 459 bytes |
コンパイル時間 | 658 ms |
コンパイル使用メモリ | 23,420 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-21 22:45:36 |
合計ジャッジ時間 | 1,471 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 0 ms
4,376 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | WA | - |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
ソースコード
#include <stdio.h> int main(void) { int i, j, cards[5], count[13] = {}, ver[4] = {}, a = 4; for(i = 0; 5 > i; i++){ scanf("%d", &cards[i]); count[cards[i]]++; } for(i = 0; 13 > i; i++){ ver[count[i]]++; } if(count[2] == 2) printf("TWO PAIR\n"); else if(count[2] == 1 && count[3] == 1) printf("FULL HOUSE\n"); else if(count[2] == 1) printf("ONE PAIR\n"); else if(count[3] == 1) printf("THREE CARD\n"); else printf("NO HAND\n"); return 0; }