摘要:本文主要通过实验来分析LinearRegression中参数设置对系数的影响。 阅读全文
codeforces 432D Prefixes and Suffixes
2014-08-01 18:17 by bootstar, 448 阅读, 0 推荐, 收藏,
摘要:Codeforces 432D 后缀自动机、KMP 阅读全文
8月5日集训队个人赛第七场解题报告
2013-08-05 11:39 by bootstar, 223 阅读, 0 推荐, 收藏,
摘要:A Codeforces 204A简单的数位DP。从高位到低位扫一遍就可以了。 1 #include 2 #include 3 typedef long long LL; 4 const int maxn = 20; 5 LL p[maxn]; 6 7 LL DP(LL x){ 8 int bit[20], cnt = 0; 9 for(LL n = x; n; bit[cnt ++] = n%10, n/=10);10 if(cnt==1) return x - 1;11 LL ans = 9;12 for(int i = 2; i 0; i ... 阅读全文
Codeforces 295C Greg and Friends
2013-07-23 23:05 by bootstar, 396 阅读, 0 推荐, 收藏,
摘要:BFS+DP.dp[i][j][0]表示有i个50kg,j个100kg的人在左岸,dp[i][j][1]表示有i个50kg,j个100kg的人在右岸。用BFS求最短路的时候记录到达该状态的可能情况。 阅读全文
浙公网安备 33010602011771号