結果
問題 |
No.204 ゴールデン・ウィーク(2)
|
ユーザー |
👑 ![]() |
提出日時 | 2016-07-16 15:30:54 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 03:11:11 |
合計ジャッジ時間 | 1,361 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^~~~ main.c: In function ‘main’: main.c:1:14: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:14: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:28: warning: implicit decla
ソースコード
p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t==-112?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);}