結果
問題 | No.227 簡単ポーカー |
ユーザー | testestest |
提出日時 | 2015-08-09 00:54:40 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 23,288 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-25 07:24:19 |
合計ジャッジ時間 | 2,788 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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 | - |
コンパイルメッセージ
main.c: In function ‘main’: main.c:3:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] for(i=0;i<5;i++)scanf("%d",&t),a[t]++; ^~~~~ main.c:3:17: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:3:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:1: +#include <stdio.h> int main(){ main.c:3:17: for(i=0;i<5;i++)scanf("%d",&t),a[t]++; ^~~~~ main.c:5:1: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] puts(s[3]?s[2]?"FULL HOUSE":"THREE CARD":s[2]-2?s[2]-1?"NO HAND":"ONE PAIR":"TWO PAIR"); ^~~~
ソースコード
int main(){ int a[14],i,t,s[6]; for(i=0;i<5;i++)scanf("%d",&t),a[t]++; for(i=1;i<14;i++)s[a[i]]++; puts(s[3]?s[2]?"FULL HOUSE":"THREE CARD":s[2]-2?s[2]-1?"NO HAND":"ONE PAIR":"TWO PAIR"); return 0; }