結果
問題 | No.398 ハーフパイプ(2) |
ユーザー | 👑 testestest |
提出日時 | 2016-07-18 12:31:48 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 949 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 21,632 KB |
実行使用メモリ | 144,000 KB |
最終ジャッジ日時 | 2024-06-27 15:31:58 |
合計ジャッジ時間 | 18,619 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 938 ms
144,000 KB |
testcase_01 | AC | 949 ms
144,000 KB |
testcase_02 | AC | 929 ms
144,000 KB |
testcase_03 | AC | 939 ms
144,000 KB |
testcase_04 | AC | 938 ms
144,000 KB |
testcase_05 | AC | 945 ms
144,000 KB |
testcase_06 | AC | 943 ms
144,000 KB |
testcase_07 | AC | 938 ms
144,000 KB |
testcase_08 | AC | 937 ms
144,000 KB |
testcase_09 | AC | 937 ms
144,000 KB |
testcase_10 | AC | 931 ms
144,000 KB |
testcase_11 | AC | 947 ms
144,000 KB |
testcase_12 | AC | 934 ms
144,000 KB |
testcase_13 | AC | 935 ms
144,000 KB |
testcase_14 | AC | 933 ms
144,000 KB |
testcase_15 | AC | 938 ms
144,000 KB |
testcase_16 | AC | 942 ms
144,000 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,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+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,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+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,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+m+M];a=!printf("%ld",a);} | ^ main.c:2:34: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 2 | long d[7][101][101][601],a;m,M,s,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+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,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+m+M];a=!printf("%ld",a);} | ^~~~ main.c: In function ‘main’: main.c:2:36: warning: type of ‘k’ defaults to ‘int�
ソースコード
#define R(i)for(i=101;i--;) long d[7][101][101][601],a;m,M,s,i;main(k){for(d[0][100][0][0]=1;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];scanf("%d.%d",&i,&s);R(m)R(M)a+=d[6][m][M][i*4+s/25+m+M];a=!printf("%ld",a);}