結果
| 問題 |
No.19 ステージの選択
|
| ユーザー |
%20
|
| 提出日時 | 2017-05-11 04:32:56 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 201 bytes |
| コンパイル時間 | 1,202 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 10:06:24 |
| 合計ジャッジ時間 | 1,131 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | L[101],S[101],v[101],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:8: warning: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
1 | L[101],S[101],v[101],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:15: warning: type defaults to 'int' in declaration of 'v' [-Wimplicit-int]
1 | L[101],S[101],v[101],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:22: warning: type defaults to 'int' in declaration of 'e' [-Wimplicit-int]
1 | L[101],S[101],v[101],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:24: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
1 | L[101],S[101],v[101],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:26: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
1 | L[101],S[101],v[101],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:28: warning:
ソースコード
L[101],S[101],v[101],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.);}
%20