結果

問題 No.239 にゃんぱすー
ユーザー testestesttestestest
提出日時 2016-06-23 19:10:55
言語 C90
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 147 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 20,480 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-19 23:50:58
合計ジャッジ時間 1,475 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,812 KB
testcase_01 AC 0 ms
6,940 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 0 ms
6,940 KB
testcase_05 WA -
testcase_06 AC 1 ms
6,944 KB
testcase_07 AC 0 ms
6,940 KB
testcase_08 AC 1 ms
6,944 KB
testcase_09 WA -
testcase_10 AC 0 ms
6,940 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
6,940 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 2 ms
6,940 KB
testcase_21 WA -
testcase_22 AC 1 ms
6,940 KB
testcase_23 AC 1 ms
6,944 KB
testcase_24 AC 1 ms
6,940 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 0 ms
6,940 KB
testcase_28 AC 1 ms
6,940 KB
testcase_29 WA -
testcase_30 AC 1 ms
6,940 KB
testcase_31 AC 1 ms
6,940 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 1 ms
6,940 KB
testcase_35 WA -
testcase_36 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:5: warning: data definition has no type or storage class
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      |     ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      |           ^
main.c:1:13: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int]
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      |             ^
main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      |               ^
main.c:1:17: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
      |                 ^~~~
main.c: In function ‘main’:
main.c:1:17: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:29: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%

ソースコード

diff #

x[];a[99],i,j,s;main(n){for(scanf("%d",&n);~scanf("%s",x);a[i++%n]+=!strcmp(x,"nyanpass"));for(;j<99;)s=a[j++]+1-n?s:s?-1:j;j=!printf("%d",s?:-1);}
0