結果
| 問題 | 
                            No.287 場合の数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fiord
                         | 
                    
| 提出日時 | 2015-10-10 00:06:25 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 269 bytes | 
| コンパイル時間 | 1,361 ms | 
| コンパイル使用メモリ | 158,040 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-07 23:57:10 | 
| 合計ジャッジ時間 | 2,234 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll dp[9][1000];
int main(){
	int n;	cin>>n;
	dp[0][0]=1;
	for(int i=0;i<8;i++){
		for(int j=0;j<=i*n;j++){
			for(int k=0;k<=n;k++)	dp[i+1][j+k]+=dp[i][j];
		}
	}
	cout<<dp[8][6*n]<<endl;
	return 0;
}
            
            
            
        
            
fiord