結果
| 問題 | No.437 cwwゲーム |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-11-07 17:06:27 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 39,396 KB |
| 最終ジャッジ日時 | 2026-02-23 22:48:12 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
コンパイルメッセージ
main.c:1:11: warning: return type defaults to 'int' [-Wimplicit-int]
1 | char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
| ^
main.c: In function 'f':
main.c:1:11: warning: type of 'u' defaults to 'int' [-Wimplicit-int]
main.c:1:110: warning: implicit declaration of function 'fmax' [-Wimplicit-function-declaration]
1 | char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
| ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'fmax'
+++ |+#include <math.h>
1 | char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
main.c:1:110: warning: incompatible implicit declaration of built-in function 'fmax' [-Wbuiltin-declaration-mismatch]
1 | char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
| ^~~~
main.c:1:110: note: include '<math.h>' or provide a declaration of 'fmax'
main.c: At top level:
main.c:1:179: warning: data definition has no type or storage class
1 | char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;
ソースコード
char s[9];f(u){int i=0,j,k,a=0,p,q;for(;p=s[j=i];++i)for(;q=u>>i&p!=48?s[k=++j]:0;)for(;u>>j&p!=q&&s[++k];)a=fmax(a,u>>k&q==s[k]?p*100+q*11-5328+f(u^1<<i^1<<j^1<<k):0);return a;}x;main(){gets(s);x=!printf("%d",f(-1));}
testestest