// Rujia Liu // 题意:给出n个带权集合,每个集合包含1~9中的三个整数。找出其中三个集合,使得1~9恰好各出现一次,且权和最大 // 算法:暴力n^2枚举前两个集合,直接计算出第三个集合。用位运算让代码更简单,速度也更快 学习点: 1、全集ALL为(1#include#include...
分类:
其他好文 时间:
2014-06-15 06:17:35
阅读次数:
163
1、OPENCVGPU重新编译+自己的文件 注意点: 1、生成OPENCV.sln解决方案后,在ALL_build的属性中,添加相应目录: ALL_BUILD中的Debug和Release上的Microsoft.Cpp.Win32.user CUDA 路径: Include Directories:...
分类:
其他好文 时间:
2014-06-15 06:14:29
阅读次数:
225
在用中文进行注释的之后运行会有这样的提示:在文件头加上 #coding=utf-8这一行就可以用中文注释了
分类:
编程语言 时间:
2014-06-15 06:07:16
阅读次数:
310
刚发现ArcGIS Objects SDK提供了一个代码升级分析工具,用于辅助将程序从9.3升级到10.X:ArcGIS Code Migration Analyzer。 安装sdk后,在vs2010中打开菜单【工具】|【ArcGIS Code Migration Analyzer】,即可调出...
分类:
其他好文 时间:
2014-06-15 00:42:50
阅读次数:
188
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:
编程语言 时间:
2014-06-15 00:40:44
阅读次数:
328
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : requestAnyURLWithCookie.py# Author : luc...
分类:
Web程序 时间:
2014-06-15 00:33:30
阅读次数:
187
About getattrPython’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the at...
分类:
编程语言 时间:
2014-06-15 00:26:18
阅读次数:
487
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : loginMMVOIP.py# Author : lucasysfeng# Re...
分类:
Web程序 时间:
2014-06-15 00:18:13
阅读次数:
245
http://docs.mongodb.org/manual/reference/command/renameCollection/db.source-namespace.renameCollection( "target" )比如把users 替换成 all_usersdb.users.renam...
分类:
其他好文 时间:
2014-06-14 23:49:28
阅读次数:
570
Question:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].-----...
分类:
其他好文 时间:
2014-06-14 22:59:14
阅读次数:
211