結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2017-03-02 23:11:43 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1,027 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 1,349 ms |
コンパイル使用メモリ | 30,464 KB |
実行使用メモリ | 172,396 KB |
最終ジャッジ日時 | 2024-06-11 07:10:52 |
合計ジャッジ時間 | 18,062 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 959 ms
170,864 KB |
testcase_01 | AC | 983 ms
171,632 KB |
testcase_02 | AC | 972 ms
171,636 KB |
testcase_03 | AC | 991 ms
172,020 KB |
testcase_04 | AC | 976 ms
171,884 KB |
testcase_05 | AC | 1,006 ms
171,760 KB |
testcase_06 | AC | 1,024 ms
171,892 KB |
testcase_07 | AC | 1,027 ms
171,504 KB |
testcase_08 | AC | 968 ms
171,376 KB |
testcase_09 | AC | 979 ms
171,376 KB |
testcase_10 | AC | 1,027 ms
171,248 KB |
testcase_11 | AC | 1,010 ms
172,396 KB |
testcase_12 | AC | 982 ms
170,608 KB |
testcase_13 | AC | 1,007 ms
171,756 KB |
testcase_14 | AC | 967 ms
172,140 KB |
testcase_15 | AC | 981 ms
171,120 KB |
testcase_16 | AC | 980 ms
171,628 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(d[0][100][0][0]=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(d[0][100][0][0]=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(d[0][100][0][0]=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(d[0][100][0][0]=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(d[0][100][0][0]=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:70: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | long d[7][101][101][601],m;
ソースコード
#define R(i)for(i=101;i--;) long d[7][101][101][601],m;M,s,i,k;main(float t){for(d[0][100][0][0]=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);}