C - C
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
SubmitStatus
Appoint description:
Description
The “U.S. Robots” HQ has just received a rather alarming...
分类:
其他 时间:
2014-01-28 23:34:04
收藏:
0 评论:
0 赞:
0 阅读:
462
从19号到28号,我们进入了英语学习集训阶段,为的是我们能有一口标准的美式发音。每天都有四五个小时的英语口语练习(尽管自己并不够),每天和大家在一起学习英语总有一种精力充沛的感觉,每个人都很认真、每个人都很积极,这段时间以来或多或少感受到了自己的进步。
以前混合不清的元音和辅音,细化下来的单元音和双元音、清辅音和浊辅音,现在都有了一定的认识。对于音标的学习,我感觉对比记忆是一个很好的学习...
分类:
其他 时间:
2014-01-28 23:33:14
收藏:
0 评论:
0 赞:
0 阅读:
439
Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?...
分类:
其他 时间:
2014-01-29 00:05:44
收藏:
0 评论:
0 赞:
0 阅读:
331
水题
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
using namespace std;
int ty[1450];
int main()
{
int n,...
分类:
其他 时间:
2014-01-29 00:00:44
收藏:
0 评论:
0 赞:
0 阅读:
425
标准递归回溯法可以搞定,防止重复,使用set容器。...
分类:
其他 时间:
2014-01-29 00:39:54
收藏:
0 评论:
0 赞:
0 阅读:
438
前几天看到文哲的博客中有一个关于virtual
和 abstract
的区别问题。可以说当时也是模棱两可,也不太确定具体有什么区别,今天查了查,稍微有点收获,希望对您有所帮助:
1、先说虚方法 virtual
虚方法有自己的函数体,已经提供了函数实现,但是允许在子类中重写或覆盖。重写的子类虚函数就是被覆盖了。下面就来具体举个例子来说明一下:
首先建立父类Animal,其中包含虚方法...
分类:
其他 时间:
2014-01-29 00:53:14
收藏:
0 评论:
0 赞:
0 阅读:
417
思路分析:
在dp LCS的同时记录下状态
#include
#include
#include
#include
using namespace std;
char str1[105],str2[105];
int dp[105][105],pre[105][105];
void print(int i,int j)
{
if(!i && !j)return;...
分类:
其他 时间:
2014-01-28 23:59:54
收藏:
0 评论:
0 赞:
0 阅读:
601
给定一个有向图,每条边都有一个权值,每次你可以选择一个结点v和整数d,把所有以v为终点的边权值减少d,把所有以v为起点的边权值增加d,最后要让所有的边权值非负且最大。...
分类:
其他 时间:
2014-01-28 23:26:34
收藏:
0 评论:
0 赞:
0 阅读:
455
Optimal Array Multiplication Sequence
Given two arrays A and B, we can determine the array C = A B using the standard definition of matrix multiplication:
The number of columns in the...
分类:
其他 时间:
2014-01-29 00:34:55
收藏:
0 评论:
0 赞:
0 阅读:
430
每架飞机只能在E L 这2个时间点降落 每2架并且降落的时间间隔必须大于等于p才算安全 目标使p尽量大
二分时间间隔 做2-SAT 有解说明可行
xi = true 表示选择E false 选择L
如果 abs(Ei - Ej)
建图 上模版
#include
#include
#include
#include
using namespace std;
const int...
分类:
其他 时间:
2014-01-29 00:52:25
收藏:
0 评论:
0 赞:
0 阅读:
472
新建的unity2d项目 摄像机的z是个-10.
所以转换需要把z是-10考虑进去.正确的转换应该是.
var OP = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, Camera.main.transform.position.z));
...
分类:
其他 时间:
2014-01-28 23:43:14
收藏:
0 评论:
0 赞:
0 阅读:
422
Tomcat后台服务(开机启动)Shell代码,安装过程请参照上一篇。初学者可以直接复制使用,请注意结合服务器硬件条件适当调整JAVA_OPTS的配置内容...
分类:
其他 时间:
2014-01-29 01:06:35
收藏:
0 评论:
0 赞:
0 阅读:
588
Photoshop CC
Win: http://trials3.adobe.com/AdobeProducts/PHSP/14/win32/Photoshop_14_LS20.7z
Win: http://trials3.adobe.com/AdobeProducts/PHSP/14/win32/Photoshop_14_LS20.exe
Mac: http://trials3.adobe...
分类:
其他 时间:
2014-01-28 23:24:54
收藏:
0 评论:
0 赞:
0 阅读:
452
我们在使用MFC 进行应用程序开发时,如果使用的是多字节编码,那么程序运行后,控件样式全部会编程VC6的那种界面。
而如果使用统一编码(UNICODE),则会引发很多地方的报错,一个个的改很费劲。
如何在多字节编码下,同样让应用程序展现和从vista开始的window风格一样呢?
创建文件 newstyle.manifest
文件内容为:
name="Mic...
分类:
其他 时间:
2014-01-29 00:16:34
收藏:
0 评论:
0 赞:
0 阅读:
517
在网上找到的:
在项目中要用到FLASH上传,选择了swfupload上传组件。因为一些定制化需求,感觉这个东西做得挺不错的。在IE下测试很正常,但项目组其他成员有的习惯了用FF,结果在FF上报 302 错误。
在网上搜索了很多文章,有中文的,也有英文的,都说是session的问题,火狐不保存session,需要传递sessionID,说的很不清楚。其实在前台配置的时候也使用了param...
分类:
其他 时间:
2014-01-29 00:34:04
收藏:
0 评论:
0 赞:
0 阅读:
405
Sqrt(x)
Implement int sqrt(int x).
Compute and return the square root of x.
算法思想:
1、二分法
class Solution {
public:
int sqrt(int x) {
if(x < 0) return -1;
...
分类:
其他 时间:
2014-01-28 23:59:04
收藏:
0 评论:
0 赞:
0 阅读:
522
File->Import->打开大类General->找到小类Existing Projects info Workspace->选择Select root dirctory,找到对应项目,选中项目文件夹,点确定,再点Finish就可以了...
分类:
其他 时间:
2014-01-29 00:10:44
收藏:
0 评论:
0 赞:
0 阅读:
988
问题:判断一个数是否是两个质数的乘积。
Problem: Nearly prime number is an integer positive number for which it is possible to find such primes P1 and P2 that given number is equal to P1*P2. There is given a sequence on...
分类:
其他 时间:
2014-01-29 00:48:14
收藏:
0 评论:
0 赞:
0 阅读:
427
题意:求约瑟夫环倒数三个删除的是
思路:经典约瑟夫环的递推是:f[1] = 0,f[n] = (f[n-1]+k)%n
那么这道题就变形为:当求倒数第三个的时候,我们考虑只剩三个的时候,第一删除的就是答案,那么结果很容易写出来是:(k-1)%3,同时这也是f[3]的答案,同理推出其他的只是起始条件变了
#include
#include
#include
#include
using...
分类:
其他 时间:
2014-01-29 00:45:45
收藏:
0 评论:
0 赞:
0 阅读:
461
一、前言
Objective-C 中的键(key)-值(value)观察(KVO)并不是什么新鲜事物,它来源于设计模式中的观察者模式,其基本思想就是:
一个目标对象管理所有依赖于它的观察者对象,并在它自身的状态改变时主动通知观察者对象。这个主动通知通常是通过调用各观察者对象所提供的接口方法来实现的。观察者模式较完美地将目标对象与观察者对象解耦。
在 Objective-C 中有两种使...
分类:
其他 时间:
2014-01-28 23:24:04
收藏:
0 评论:
0 赞:
0 阅读:
727