結果
問題 | No.227 簡単ポーカー |
ユーザー | nxteru |
提出日時 | 2017-04-04 16:31:13 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 08:36:32 |
合計ジャッジ時間 | 579 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | AC | 0 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 1 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:10: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^ main.c:1:14: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int] 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^ main.c:1:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^ main.c:1:22: warning: return type defaults to 'int' [-Wimplicit-int] 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^~~~ main.c: In function 'main': main.c:1:22: warning: type of 'j' defaults to 'int' [-Wimplicit-int] main.c:1:35: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or
ソースコード
a[14]={},i=0,p=0,c=0;main(j){for(;scanf("%d",&j)+1;a[j]++);for(;i<14;i++){p+=a[i]-2?0:1;c+=a[i]-3?0:1;}printf(c?p?"FULL HOUSE":"THREE CARD":p?p>1?"TWO PAIR":"ONE PAIR":"NO HAND");}