結果
問題 | No.291 黒い文字列 |
ユーザー |
👑 ![]() |
提出日時 | 2016-10-25 00:50:44 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 331 ms |
コンパイル使用メモリ | 21,760 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-12-23 14:59:59 |
合計ジャッジ時間 | 1,736 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
コンパイルメッセージ
main.c:3:1: warning: data definition has no type or storage class 3 | q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;main(S){*****q=1;for(gets(s);*p;p++)f(a,20)f(b,a)f(c,b)f(d,c)*(t=&q[a][b][c][d][p-s])?x=*p-63,*p-82&&x||m(t[2245],*t),*p-75&&x||m(t[1086097],*t),*p-85&&x||m(t[49369],*t),*p-79&&x||m(t[103],*t),*p-73&&x||m(S,m(t[1],d<*t?0:*t+1)),m(t[1],*t):0;x=!printf("%d",S-1);} | ^ main.c:3:1: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] main.c:3:25: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 3 | q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;main(S){*****q=1;for(gets(s);*p;p++)f(a,20)f(b,a)f(c,b)f(d,c)*(t=&q[a][b][c][d][p-s])?x=*p-63,*p-82&&x||m(t[2245],*t),*p-75&&x||m(t[1086097],*t),*p-85&&x||m(t[49369],*t),*p-79&&x||m(t[103],*t),*p-73&&x||m(S,m(t[1],d<*t?0:*t+1)),m(t[1],*t):0;x=!printf("%d",S-1);} | ^ main.c:3:27: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] 3 | q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;main(S){*****q=1;for(gets(s);*p;p++)f(a,20)f(b,a)f(c,b)f(d,c)*(t=&q[a][b][c][d][p-s])?x=*p-63,*p-82&&x||m(t[2245],*t),*p-75&&x||m(t[1086097],*t),*p-85&&x||m(t[49369],*t),*p-79&&x||m(t[103],*t),*p-73&&x||m(S,m(t[1],d<*t?0:*t+1)),m(t[1],*t):0;x=!printf("%d",S-1);} | ^ main.c:3:29: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 3 | q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;main(S){*****q=1;for(gets(s);*p;p++)f(a,20)f(b,a)f(c,b)f(d,c)*(t=&q[a][b][c][d][p-s])?x=*p-63,*p-82&&x||m(t[2245],*t),*p-75&&x||m(t[1086097],*t),*p-85&&x||m(t[49369],*t),*p-79&&x||m(t[103],*t),*p-73&&x||m(S,m(t[1],d<*t?0:*t+1)),m(t[1],*t):0;x=!printf("%d",S-1);} | ^ main.c:3:31: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int] 3 | q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;
ソースコード
#define f(i,e)for(i=e+1;i--;) #define m(p,q)(p<(q)?p=q:p) q[22][22][22][22][102],*t,a,b,c,d,x;char s[110],*p=s;main(S){*****q=1;for(gets(s);*p;p++)f(a,20)f(b,a)f(c,b)f(d,c)*(t=&q[a][b][c][d][p-s])?x=*p-63,*p-82&&x||m(t[2245],*t),*p-75&&x||m(t[1086097],*t),*p-85&&x||m(t[49369],*t),*p-79&&x||m(t[103],*t),*p-73&&x||m(S,m(t[1],d<*t?0:*t+1)),m(t[1],*t):0;x=!printf("%d",S-1);}