結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-09 00:55:41 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 758µs | |
| コード長 | 205 bytes |
| 記録 | |
| コンパイル時間 | 40 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-24 01:31:25 |
| 合計ジャッジ時間 | 1,714 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
3 | for(i=0;i<5;i++)scanf("%d",&t),a[t]++;
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | int main(){
ソースコード
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;
}
testestest