Problem D - Maximum Product Time Limit: 1 second Given a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the max ...
分类:
其他好文 时间:
2017-05-07 14:06:48
阅读次数:
148
Time Limit: 10000ms Memory Limit: 262154KB 64-bit integer IO format: %lld Java class name: Main Time Limit: 10000ms Memory Limit: 262154KB 木衫同学和凌小小都是军 ...
分类:
其他好文 时间:
2017-05-07 10:11:57
阅读次数:
202
http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1808 题意:…… 思路:和之前的天梯赛的一题一样,但是简单点。 没办法直接用点去算。把边看成点去做,规定dis[i]为走完第i条边之后即达到edge[i].v这个点的时候需要的花费。 点数为2* ...
分类:
其他好文 时间:
2017-05-06 15:52:47
阅读次数:
240
4516: [Sdoi2016]生成魔咒 Description 魔咒串由许多魔咒字符组成,魔咒字符可以用数字表示。例如可以将魔咒字符 1、2 拼凑起来形成一个魔咒串 [1,2]。 一个魔咒串 S 的非空字串被称为魔咒串 S 的生成魔咒。 例如 S=[1,2,1] 时,它的生成魔咒有 [1]、[2] ...
分类:
其他好文 时间:
2017-05-05 21:50:01
阅读次数:
175
package lld; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFShe ...
分类:
其他好文 时间:
2017-05-05 00:57:26
阅读次数:
243
1 #include<stdio.h> 2 int main () 3 { 4 long long a,b,s; 5 6 while(scanf("%lld%lld",&a,&b)==2) 7 { 8 s=a-b; 9 printf("%lld\n",s); 10 } 11 12 return 0; ...
分类:
其他好文 时间:
2017-05-04 13:26:03
阅读次数:
138
递推; 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 #define ll long long 6 #define FILE "dealing" 7 #define up(i ...
分类:
其他好文 时间:
2017-05-04 09:45:53
阅读次数:
160
我嗯,这道题比较讨厌,非常难,需要用到马尔科夫随便链、高斯混合复制模型、神经网络还需要用到本人的模拟退火算法进行优化搜索,为了搜索文章避免陷入局部优化,还得用到一些Tabu Search代码比较多写的有点乱七八糟,有的还点长,都贴到laji的网站如了。布料布衣价格上涨,扣子费用降低。这样导致过程很难 ...
分类:
其他好文 时间:
2017-05-03 19:16:56
阅读次数:
105
以几个几克砝码为例 1+x^2+x^4表示有2个2g砝码 1+x^3+x^6表示2个3g砝码 1+x^3+x^6+ x^9表示有3个3g砝码 问这些砝码有几种不一样的重量 f ( x ) = (1+x^2+x^4)×(1+x^3+x^6)×(1+x^3+x^6+ x^9) 得出结果有几个x就有几种不 ...
分类:
其他好文 时间:
2017-05-03 17:12:58
阅读次数:
160