結果
問題 | No.457 (^^*) |
ユーザー |
👑 ![]() |
提出日時 | 2016-12-31 11:47:27 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 404 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 347 ms |
コンパイル使用メモリ | 21,120 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-16 04:22:37 |
合計ジャッジ時間 | 3,066 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
main.c:2:8: warning: multi-character character constant [-Wmultichar] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^~~~ main.c:2:14: warning: data definition has no type or storage class 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:14: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:2:16: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:18: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:20: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:22: warning: type defaults to ‘int’ in declaration of ‘L’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:24: warning: type defaults to ‘int’ in declaration of ‘R’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);} | ^ main.c:2:26: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i
ソースコード
#define f(X,Y,Z,W)X|s[j]-94&&Y|s[j]%7?s[j]&Z>2?W+=++Z>3:0:s[i]%8||++Z, char s['~~'];i,j,p,q,L,R;main(){for(gets(s);s[++j]?f(p>1,p-2,p,L)f(q-1&q-2,q,q,R)1:(p=q=0,s[j=++i]););i=!printf("%d %d",L,R);}