hihoCoder Challenge 5 register

Ended

Participants:319

Verdict:Accepted
Submitted:2014-11-09 20:52:30

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>      
#include <cstdio>      
#include <map>      
#include <cstring>      
#include <cmath>      
#include <vector>      
#include <algorithm>      
#include <set>      
#include <stack>    
#include <string>      
#include <ctime>    
#include <queue>      
#include <cassert>    
using namespace std;
typedef long long LL;
const int N = 305;
const int MOD = 1000000009;
int n , a[N] , v[N];
long double c[N][N];
long double dp[N][N];
int main(){
#ifndef ONLINE_JUDGE
    // freopen ("input.txt" , "r" , stdin);
    // freopen ("output.txt" , "w" , stdout);
#endif
    for (int i = 0 ; i < N ; i ++) {
        c[i][0] = c[i][i] = 1;
        for (int j = 1 ; j < i ; j ++) {
            c[i][j] = c[i - 1][j] + c[i - 1][j - 1];
        }
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX