結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2016-07-18 06:02:01 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 156,636 KB |
最終ジャッジ日時 | 2024-10-15 15:32:27 |
合計ジャッジ時間 | 26,234 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
コンパイルメッセージ
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=2;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=2;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=2;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=2;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=2;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=2;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);}