結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2016-07-18 06:03:58 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 132,700 KB |
最終ジャッジ日時 | 2024-06-26 02:01:57 |
合計ジャッジ時間 | 32,408 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1,670 ms
130,520 KB |
testcase_01 | AC | 1,679 ms
132,696 KB |
testcase_02 | TLE | - |
testcase_03 | TLE | - |
testcase_04 | AC | 1,682 ms
132,572 KB |
testcase_05 | AC | 1,637 ms
132,572 KB |
testcase_06 | AC | 1,671 ms
132,572 KB |
testcase_07 | AC | 1,646 ms
132,568 KB |
testcase_08 | AC | 1,683 ms
132,568 KB |
testcase_09 | AC | 1,714 ms
132,564 KB |
testcase_10 | AC | 1,642 ms
132,564 KB |
testcase_11 | AC | 1,650 ms
132,692 KB |
testcase_12 | AC | 1,722 ms
132,568 KB |
testcase_13 | AC | 1,662 ms
132,568 KB |
testcase_14 | AC | 1,654 ms
132,568 KB |
testcase_15 | AC | 1,721 ms
132,700 KB |
testcase_16 | AC | 1,642 ms
132,568 KB |
コンパイルメッセージ
main.c:2:28: warning: data definition has no type or storage class 2 | long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);} | ^ 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 ‘M’ [-Wimplicit-int] 2 | long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);} | ^ main.c:2:32: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 2 | long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);} | ^ main.c:2:34: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 2 | long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);} | ^ main.c:2:36: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);} |
ソースコード
#define R(i,a)for(i=a;i<101;i++) long d[7][101][101][601],a;m,M,s,k;main(i){R(m,0)d[1][m][m][m]=1;for(i=1;i<6;i++)R(m,0)R(M,m)for(s=m*i;s<=i*100;s++)R(k,0)d[i+1][m<k?m:k][M>k?M:k][s+k]+=d[i][m][M][s];scanf("%d.%d",&i,&k);i=i*4+k/25;R(m,0)R(M,m)a+=d[6][m][M][i+m+M];a=!printf("%ld",a);}