結果

問題 No.588 空白と回文
ユーザー testestesttestestest
提出日時 2017-11-05 02:52:24
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 29,696 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-03 04:07:49
合計ジャッジ時間 1,805 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 WA -
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 1 ms
6,944 KB
testcase_11 AC 1 ms
6,944 KB
testcase_12 WA -
testcase_13 AC 1 ms
6,940 KB
testcase_14 WA -
testcase_15 AC 1 ms
6,940 KB
testcase_16 AC 1 ms
6,940 KB
testcase_17 WA -
testcase_18 AC 1 ms
6,940 KB
testcase_19 AC 1 ms
6,944 KB
testcase_20 WA -
testcase_21 AC 1 ms
6,944 KB
testcase_22 AC 1 ms
6,940 KB
testcase_23 AC 1 ms
6,944 KB
testcase_24 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:14: warning: data definition has no type or storage class
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |              ^
main.c:1:14: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
main.c:1:16: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                ^
main.c:1:18: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                  ^
main.c:1:20: warning: type defaults to 'int' in declaration of 'M' [-Wimplicit-int]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                    ^
main.c:1:22: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                      ^~~~
main.c: In function 'main':
main.c:1:22: warning: type of 'r' defaults to 'int' [-Wimplicit-int]
main.c:1:34: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                                  ^~~~
main.c:1:57: warning: implicit declaration of function 'fmax' [-Wimplicit-function-declaration]
    1 | char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
      |                                                         ^~~~
main.c:1:1: n

ソースコード

diff #

char s[1010];l,m,k,M;main(r){for(gets(s);s[m];l=++m/2,M=fmax(M,2*k-m%2))for(r=m-l,k=0;~l&&s[r];)k+=s[l--]==s[r++];printf("%d",M);}
0