結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2017-11-07 00:21:17 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 881 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 146,420 KB |
最終ジャッジ日時 | 2024-06-27 15:43:04 |
合計ジャッジ時間 | 16,551 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 875 ms
144,384 KB |
testcase_01 | AC | 878 ms
145,012 KB |
testcase_02 | AC | 867 ms
146,412 KB |
testcase_03 | AC | 877 ms
145,772 KB |
testcase_04 | AC | 870 ms
146,420 KB |
testcase_05 | AC | 865 ms
145,904 KB |
testcase_06 | AC | 874 ms
146,416 KB |
testcase_07 | AC | 868 ms
145,904 KB |
testcase_08 | AC | 870 ms
146,032 KB |
testcase_09 | AC | 873 ms
145,004 KB |
testcase_10 | AC | 868 ms
146,416 KB |
testcase_11 | AC | 861 ms
145,772 KB |
testcase_12 | AC | 870 ms
145,648 KB |
testcase_13 | AC | 864 ms
146,412 KB |
testcase_14 | AC | 872 ms
145,392 KB |
testcase_15 | AC | 881 ms
146,420 KB |
testcase_16 | AC | 878 ms
146,412 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][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(100[*d][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(100[*d][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(100[*d][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(100[*d][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:68: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 2 | long d[7][101][101][601],m;M,s,i,k;ma
ソースコード
#define R(i)for(i=101;i--;) long d[7][101][101][601],m;M,s,i,k;main(float t){for(100[*d][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);}