結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2017-11-07 00:22:20 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 942 ms / 2,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 144,384 KB |
最終ジャッジ日時 | 2024-06-27 15:47:41 |
合計ジャッジ時間 | 16,987 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 884 ms
144,384 KB |
testcase_01 | AC | 892 ms
144,384 KB |
testcase_02 | AC | 885 ms
144,384 KB |
testcase_03 | AC | 887 ms
144,256 KB |
testcase_04 | AC | 905 ms
144,384 KB |
testcase_05 | AC | 914 ms
144,384 KB |
testcase_06 | AC | 890 ms
144,384 KB |
testcase_07 | AC | 887 ms
144,384 KB |
testcase_08 | AC | 885 ms
144,384 KB |
testcase_09 | AC | 896 ms
144,384 KB |
testcase_10 | AC | 892 ms
144,384 KB |
testcase_11 | AC | 942 ms
144,384 KB |
testcase_12 | AC | 885 ms
144,256 KB |
testcase_13 | AC | 886 ms
144,384 KB |
testcase_14 | AC | 897 ms
144,384 KB |
testcase_15 | AC | 885 ms
144,384 KB |
testcase_16 | AC | 891 ms
144,384 KB |
コンパイルメッセージ
main.c:2:28: warning: data definition has no type or storage class 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);} | ^ main.c:2:28: warning: type defaults to 'int' in declaration of 'M' [-Wimplicit-int] main.c:2:30: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);} | ^ main.c:2:32: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);} | ^ main.c:2:34: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);} | ^ main.c:2:36: warning: return type defaults to 'int' [-Wimplicit-int] 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);} | ^~~~ main.c: In function 'main': main.c:2:64: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | long d[7][101][101][601],m;M,s,i,k;main(float t){for(**10
ソースコード
#define R(i)for(i=101;i--;) long d[7][101][101][601],m;M,s,i,k;main(float t){for(**100[*d]=scanf("%f",&t);i<6;i++)R(m)R(M)R(k)for(s=m*i;s<=i*100;s++)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];R(k)R(M)m-=d[6][k][M][s=t*4+k+M];printf("%ld",~m);}