ismember 判断A中的元素在B中有没有出现 LIA = ismember(A,B)
for arrays A and B returns an array of the samesize as A containing true where
the elements of A are i...
分类:
其他好文 时间:
2014-05-05 22:25:11
阅读次数:
317
1. introductionfrom numpy import
*random.rand(4,4)#array to matrixrandMat=mat(randon.rand(4,4))#matrix
inverseIvrandMat=randMat.I#indentity matrixeye(...
分类:
编程语言 时间:
2014-05-05 22:24:10
阅读次数:
336
Materialise 3-Matic v6.1.1.0 Win64 1CD
3-matic基于数字化CAD(STL)的正向工程软件。
3-matic是产品设计到产品制造的快捷方式。3-matic的所有操作都是基于数字化的形式(基于三角片)进行处理,可以直接减少逆向工程和传统CA...
分类:
其他好文 时间:
2014-05-05 22:00:38
阅读次数:
340
Materialise 3-Matic v6.1.1.0 Win64 1CD
3-matic基于数字化CAD(STL)的正向工程软件。
3-matic是产品设计到产品制造的快捷方式。3-matic的所有操作都是基于数字化的形式(基于三角片)进行处理,可以直接减少逆向工程和传统CA...
题目:
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new len...
分类:
其他好文 时间:
2014-05-05 12:58:57
阅读次数:
294
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets
so as the following conditions hold:
The product of all numbers in the first set is less ...
分类:
其他好文 时间:
2014-05-03 23:51:19
阅读次数:
621
Sliding Window
Time Limit: 12000MS
Memory Limit: 65536K
Total Submissions: 36315
Accepted: 10756
Case Time Limit: 5000MS
Description
An array of size n ≤ 106 is gi...
转战单调队列,争取省赛前做完。。。。
这个题是很裸的单调队列。
不能用stl让人很蛋疼。。。。
就是用一个队列保存当前队伍的信息,如果来了一个大的,就把前面的小的挤掉。
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 55000
#define INF 99999...
分类:
其他好文 时间:
2014-05-03 16:28:35
阅读次数:
342
auto root = Dictionary::create();
auto string = String::create("string element value");
root->setObject(string, "string element key");
auto array = Array::create();
...
分类:
其他好文 时间:
2014-05-03 16:27:48
阅读次数:
380
C++开发的项目难免会用到STL的string,使用管理都比char数组(指针)方便的多,但在得心应手的使用过程中也要警惕几个小陷阱,避免我们项目出bug却迟迟找不到原因。
1. 结构体中的string赋值问题
直接通过一个例子说明,下面的例子会输出什么:
#include
#include
#include
using namespace std;
stru...
分类:
编程语言 时间:
2014-05-03 16:09:23
阅读次数:
289