This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
typedef long long lint; | |
typedef pair<lint,int> pi; | |
const int mod = 1e9 + 7; | |
int bino[1005][1005]; | |
int n; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <algorithm> | |
using namespace std; | |
int dp[305][305]; | |
int dp2[305][305]; | |
char str[305]; | |
int f(int s, int e){ | |
if(s > e) return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <vector> | |
using namespace std; | |
double dp[1<<16]; | |
bool vis[1<<16]; | |
double f(int bit){ | |
if(bit == 0) return 0; | |
if(vis[bit]) return dp[bit]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstring> | |
#include <algorithm> | |
using namespace std; | |
int n,m,r,s,a[20][20]; | |
int b[20][20], cst[20][20], dp[20][20]; | |
int solve(int bit){ | |
memset(b,0,sizeof(b)); |
NewerOlder