結果
問題 | No.239 にゃんぱすー |
ユーザー | 👑 testestest |
提出日時 | 2015-08-09 14:19:32 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 153 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 06:11:31 |
合計ジャッジ時間 | 961 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,812 KB |
testcase_01 | AC | 1 ms
6,940 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 1 ms
6,944 KB |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
6,944 KB |
testcase_07 | AC | 0 ms
6,940 KB |
testcase_08 | AC | 0 ms
6,940 KB |
testcase_09 | WA | - |
testcase_10 | AC | 1 ms
6,944 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 1 ms
6,944 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | AC | 1 ms
6,940 KB |
testcase_21 | WA | - |
testcase_22 | AC | 1 ms
6,944 KB |
testcase_23 | AC | 1 ms
6,940 KB |
testcase_24 | AC | 2 ms
6,944 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 1 ms
6,944 KB |
testcase_28 | AC | 0 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 | 2 ms
6,940 KB |
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class 1 | char 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?s:-1);} | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:16: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | char 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?s:-1);} | ^ main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | char 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?s:-1);} | ^ main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | char 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?s:-1);} | ^ main.c:1:22: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char 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?s:-1);} | ^~~~ main.c: In function ‘main’: main.c:1:22: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:34: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | char 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?s:-1);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | char x[];a[9
ソースコード
char 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?s:-1);}