結果
問題 | No.52 よくある文字列の問題 |
ユーザー | 👑 testestest |
提出日時 | 2016-02-12 10:04:06 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 21,120 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 05:24:33 |
合計ジャッジ時間 | 2,260 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
コンパイルメッセージ
main.c:1:24: warning: data definition has no type or storage class 1 | char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);} | ^ main.c:1:24: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:26: warning: type defaults to ‘int’ in declaration of ‘l’ [-Wimplicit-int] 1 | char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);} | ^ main.c:1:28: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] 1 | char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);} | ^ main.c:1:30: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] 1 | char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);} | ^ main.c:1:32: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);} | ^ main.c: In function ‘c’: main.c:1:32: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:1:32: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit
ソースコード
char s[11],a[3000][11];i,l,r,n;c(a,b){return strcmp(a,b);}main(t){n=strlen(gets(s));for(t<<=n;t--;l=0)for(i=r=n;i--;a[t][i]=s[t&1<<i?l++:--r]);qsort(a,i=2e3,11,c);for(;i--;t+=!!strcmp(a[i+1],a[i]));i=!printf("%d",t);}