結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2016-07-24 04:19:12 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 941 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 323 ms |
コンパイル使用メモリ | 21,632 KB |
実行使用メモリ | 144,128 KB |
最終ジャッジ日時 | 2024-06-27 15:35:22 |
合計ジャッジ時間 | 18,071 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 924 ms
144,000 KB |
testcase_01 | AC | 924 ms
144,000 KB |
testcase_02 | AC | 919 ms
144,128 KB |
testcase_03 | AC | 923 ms
144,000 KB |
testcase_04 | AC | 924 ms
144,000 KB |
testcase_05 | AC | 928 ms
144,000 KB |
testcase_06 | AC | 937 ms
144,000 KB |
testcase_07 | AC | 941 ms
144,000 KB |
testcase_08 | AC | 935 ms
144,000 KB |
testcase_09 | AC | 936 ms
144,000 KB |
testcase_10 | AC | 925 ms
144,128 KB |
testcase_11 | AC | 926 ms
144,000 KB |
testcase_12 | AC | 925 ms
144,000 KB |
testcase_13 | AC | 926 ms
144,000 KB |
testcase_14 | AC | 940 ms
144,000 KB |
testcase_15 | AC | 937 ms
144,000 KB |
testcase_16 | AC | 928 ms
144,000 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];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];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];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];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];M=!printf("%ld",~m);} | ^~~~ main.c: In function ‘main’: main.c:2:70: warning: implicit declaration of function ‘scanf’ [-Wimplici
ソースコード
#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];M=!printf("%ld",~m);}