~~~
貌似是wyfcyx以前出过的题?
题解:
~~~~~~那个首先暴力的话并不是O(217)O(2^{17}),而是O(217?17)O(2^{17*17})。
~~~~~~然后我们分析怎么过此题。
~~~~~~首先我们发现其实搜索的话,有好几部分都是独立的。
~~~~~~发现所有的方形都经过中间一行,所以我们可以先O(217)O(2...
分类:
其他好文 时间:
2015-04-01 09:34:19
阅读次数:
165
Xsolla对于加拿大最流行的支付方式做了一些调查和研究,今天,为大家带来一些有趣的发现。
加拿大游戏行业
首先,我们为大家介绍一下加拿大的游戏市场(来源: ESA Canada):
从游戏行业份额来说,加拿大排名第三,仅次美国和日本。加拿大拥有世界上最大的游戏公司像BioWare, EA 和 Ubisoft。从游戏行业的雇员来说,加拿大排名第一。该国拥有329家...
分类:
其他好文 时间:
2015-04-01 09:34:15
阅读次数:
556
Path:新生赛
A.Number Sequence
Description:
A number sequence is defined as follows:
f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.
Given A, B, and n, you are to calculat...
分类:
其他好文 时间:
2015-04-01 09:36:58
阅读次数:
150
与C 和C++ 一样,Objective-C 也使用“头文件”(header file) 与“实现文件”(implementation file)来区隔代码。用Objective-C 语言编写“类”(class)的标准方式为:以类名做文件名,分别创建两个文件,头文件后缀用.h,实现文件后缀用.m。创建好一个类之后,其代码看上去如下所示: // EOCPerson.h
#import <Foun...
分类:
其他好文 时间:
2015-04-01 09:32:47
阅读次数:
133
练习4-6原文Exercise 4.6. Let expressions are derived expressions, because
(let (( ) … ( )) )
is equivalent to
((lambda ( … ) ) )
Implement a syntactic transformation let->combination that reduces...
分类:
其他好文 时间:
2015-04-01 09:35:32
阅读次数:
153
题目:
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity
should be O(log (m+n)).
思路:这道题比较直接的想法就是用Merge
Sort...
分类:
其他好文 时间:
2015-04-01 09:33:08
阅读次数:
143
LeetCode125 Sum Root to Leaf Numbers...
分类:
其他好文 时间:
2015-04-01 09:34:15
阅读次数:
132
【项目1-三角形类的构造函数】
设计三角形类,通过增加构造函数,使对象在定义时能够进行初始化,可以由下面的类声明开始,需要自己实现相关的成员函数,以及增加要求的构造函数
class Triangle
{
public:
double perimeter();//计算三角形的周长
double area();//计算并返回三角形的面积
void showMe...
分类:
其他好文 时间:
2015-04-01 09:33:32
阅读次数:
106
【项目1-三角形类的构造函数】
设计三角形类,通过增加构造函数,使对象在定义时能够进行初始化,可以由下面的类声明开始,需要自己实现相关的成员函数,以及增加要求的构造函数
class Triangle
{
public:
double perimeter();//计算三角形的周长
double area();//计算并返回三角形的面积
void show...
分类:
其他好文 时间:
2015-04-01 09:33:39
阅读次数:
90
题目大意:有1~n型号的滑冰鞋,每种有k双,一个x号脚的人只能适应[x,x+d]号滑冰鞋,每次增加一些x号脚的人或减少一些x号脚的人,问能否匹配
http://m.blog.csdn.net/blog/u012732945/40707885
OTZ
这题我居然还能贡献一个WA真是醉了
#include
#include
#include
#include
#define M 2...
分类:
其他好文 时间:
2015-04-01 09:33:21
阅读次数:
266
Description:
不吉利的数字为所有含有4或62的号码。输出n-m之间的吉利数的个数!
Analyse:
数位dp的原理:如果A
对于数位dp板,重点是参数的设置!
CODE:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-04-01 09:31:49
阅读次数:
117
QSortFilterProxyModel主要可实现按表的标头实现自动排序,及根据过滤条件过滤,具体的demo可以查看QT自带的Item views系列。我的例子还没加上过滤。add_da(QAbstractItemModel* model,int &ID,const QString& Description,const QString& Type){
model->insertRow(0)...
分类:
其他好文 时间:
2015-04-01 09:31:50
阅读次数:
146
练习4-7原文Exercise 4.7. Let* is similar to let, except that the bindings of the let variables are performed sequentially from left to right, and each binding is made in an environment in which all of the...
分类:
其他好文 时间:
2015-04-01 09:31:37
阅读次数:
178
题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
struct ListNode {
int val;
ListNode *next;
ListNo...
分类:
其他好文 时间:
2015-04-01 09:31:07
阅读次数:
131
题目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), d...
分类:
其他好文 时间:
2015-04-01 09:32:47
阅读次数:
115
/*
*copyright(c) 2015,烟台大学计算机学院
*All rights reserved。
*文件名称:第四周(带参数构造函数)
*作者:王忠
*完成日期:2015.4.1
*版本号:v1.0
*
*问题描述:输入三角形三边,求出周长面积
*输入描述:无
*程序输出:输出周长面积
#include
#include
using namespace st...
分类:
其他好文 时间:
2015-04-01 09:32:11
阅读次数:
133
模仿QQ侧滑删除,需要的可以学习下...
分类:
其他好文 时间:
2015-04-01 09:31:11
阅读次数:
136