C++
MASnail_LZF
这个作者很懒,什么都没留下…
展开
-
计算m个数组的和
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must not contain原创 2016-10-16 15:25:18 · 281 阅读 · 0 评论 -
C++新手之accumulate函数
accumulate()包含在numeric中,本文主要介绍如何使用accumulate求解内置数组,vector的使用方法。#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ve原创 2016-04-28 21:03:27 · 956 阅读 · 0 评论