結果

問題 No.227 簡単ポーカー
ユーザー UK_kkbjUK_kkbj
提出日時 2017-06-20 18:12:15
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 475 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 30,592 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 05:57:54
合計ジャッジ時間 2,772 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
  int v[5],i;
  for(i = 0; i < 5; i++)
    scanf("%d",v[i]);
  int t,j,cnt1,cnt2;
  for(t = 0; t < 5; t++){
    for(j = 5; t < j; j--){
      if(v[j] == v[t]){
        cnt1++;
      }
    }
  }
  switch(cnt1){
    case 0:printf("NO HAND"); break;
    case 1:printf("ONE PAIR"); break;
    case 2:printf("TWO PAIR"); break;
    case 3:printf("THREE CARD"); break;
    case 5:printf("FULL HOUSE"); break; 
    printf("NO HAND");
  }
  return 0;
}
0