码迷,mamicode.com
首页 >  
搜索关键字:poj2785    ( 13个结果
POJ2785 4 Values whose Sum is 0 【枚举】
4 Values whose Sum is 0 Time Limit: 15000MS   Memory Limit: 228000K Total Submissions: 16000   Accepted: 4625 Case Time Limit: 5000MS Description The SUM problem can...
分类:其他好文   时间:2014-11-09 14:02:26    阅读次数:123
POJ2785:4 Values whose Sum is 0(二分)
Description The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 . ...
分类:其他好文   时间:2014-08-18 18:43:52    阅读次数:210
poj 2785 4 Values whose Sum is 0 (简单二分)
//每列选一个数相加为0的个数 # include # include # include using namespace std; int ab[4010*4010],cd[4010*4010]; int main() { int n,i,k,j,count,a[4010],b[4010],c[4010],d[4010]; while(~scanf("%d",&n)) { ...
分类:其他好文   时间:2014-07-29 15:10:48    阅读次数:140
13条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!