結果
問題 | No.19 ステージの選択 |
ユーザー |
![]() |
提出日時 | 2017-05-11 04:34:10 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 07:34:10 |
合計ジャッジ時間 | 1,124 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'L' [-Wimplicit-int] main.c:1:7: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int] 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:13: warning: type defaults to 'int' in declaration of 'v' [-Wimplicit-int] 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:19: warning: type defaults to 'int' in declaration of 'e' [-Wimplicit-int] 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:21: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:23: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int] 1 | L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);} | ^ main.c:1:25: warning: type defaults to 'int' in decl
ソースコード
L[99],S[99],v[99],e,s,p,m,x;f(i){v[i]||(v[i]=p,x+=m=L[i],v[s=S[i]]==p?e=s:f(s));L[i]<m?m=L[i]:0;x+=i-e?0:m;}main(i){for(gets(L);~scanf("%d%d",L+i,S+i);++i);for(;--i;f(i))e=!++p;printf("%.1f",x/2.);}