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
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
//每列选一个数相加为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