結果

問題 No.437 cwwゲーム
ユーザー testestesttestestest
提出日時 2016-10-29 06:36:08
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 243 bytes
コンパイル時間 1,052 ms
コンパイル使用メモリ 24,004 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-15 22:17:48
合計ジャッジ時間 5,461 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 141 ms
4,380 KB
testcase_03 AC 0 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 14 ms
4,380 KB
testcase_06 AC 107 ms
4,384 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[99];f(u){int i=0,j,k,t,a=0;for(;s[j=i];++i)for(;u>>i&s[i]!=48&&s[k=++j];)for(;u>>j&s[i]!=s[j]&&s[++k];)u>>k&s[j]==s[k]&a<(t=(s[i]-48)*100+(s[j]-48)*10+s[k]-48+f(u^1<<i^1<<j^1<<k))?a=t:0;return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
            ^
main.c: In function ‘f’:
main.c:1:12: warning: type of ‘u’ defaults to ‘int’ [-Wimplicit-int]
main.c: At top level:
main.c:1:204: warning: data definition has no type or storage class
 char s[99];f(u){int i=0,j,k,t,a=0;for(;s[j=i];++i)for(;u>>i&s[i]!=48&&s[k=++j];)for(;u>>j&s[i]!=s[j]&&s[++k];)u>>k&s[j]==s[k]&a<(t=(s[i]-48)*100+(s[j]-48)*10+s[k]-48+f(u^1<<i^1<<j^1<<k))?a=t:0;return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
                                                                                                                                                                                                            ^
main.c:1:204: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:206: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[99];f(u){int i=0,j,k,t,a=0;for(;s[j=i];++i)for(;u>>i&s[i]!=48&&s[k=++j];)for(;u>>j&s[i]!=s[j]&&s[++k];)u>>k&s[j]==s[k]&a<(t=(s[i]-48)*100+(s[j]-48)*10+s[k]-48+f(u^1<<i^1<<j^1<<k))?a=t:0;return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
                                                                                                                                                                                                              ^~~~
main.c: In function ‘main’:
main.c:1:213: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 char s[99];f(u){int i=0,j,k,t,a=0;for(;s[j=i];++i)for(;u>>i&s[i]!=48&&s[k=++j];)for(;u>>j&s[i]!=s[j]&&s[++k];)u>>k&s[j]==s[k]&a<(t=(s[i]-48)*100+(s[j]-48)*10+s[k]-48+f(u^1<<i^1<<j^1<<k))?a=t:0;return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
                    

ソースコード

diff #

char s[99];f(u){int i=0,j,k,t,a=0;for(;s[j=i];++i)for(;u>>i&s[i]!=48&&s[k=++j];)for(;u>>j&s[i]!=s[j]&&s[++k];)u>>k&s[j]==s[k]&a<(t=(s[i]-48)*100+(s[j]-48)*10+s[k]-48+f(u^1<<i^1<<j^1<<k))?a=t:0;return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
0