错误代码:objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);Too many arguments to function call, expected 0, have 3经过几番周折,终于叨叨解决方案了...
分类:
移动开发 时间:
2014-11-18 11:42:09
阅读次数:
317
// ToDoListWnd.cpp : implementation file//#include "stdafx.h"#include "ToDoList.h"#include "ToDoListWnd.h"#include "ToolsCmdlineParser.h"#include "Too...
分类:
其他好文 时间:
2014-11-18 08:04:04
阅读次数:
314
CNPPopupControllerCNPPopupController is a simple and versatile class for presenting a custom popup in a variety of fashions. It includes a many option...
分类:
其他好文 时间:
2014-11-17 22:36:26
阅读次数:
279
DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given pos...
分类:
其他好文 时间:
2014-11-17 22:27:25
阅读次数:
343
696 - How Many Knights(数论)
题目链接
题目大意:要求在一个棋盘上放上最多的骑士,但他们之间不能互相攻击。骑士的攻击范围题目中有图给出。
思路:画到后面会发现上下两行骑士交错的放是最优的策略
(N N N)
( N N )
(N N N)
但是这个只适用与3*3矩阵和更大的矩阵,小点的就要另外讨论了。
一行或者一列的时後每个位置都是可以放的,不会...
分类:
其他好文 时间:
2014-11-17 21:22:08
阅读次数:
169
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2014-11-17 13:56:57
阅读次数:
141
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-11-17 06:53:34
阅读次数:
138
UVA10518 - How Many Calls?(矩阵快速幂)
题目链接
题目大意:给你fibonacci数列怎么求的,然后问你求f(n) = f(n - 1) + f(n - 2)需要多少次调用,并且这个数很大,取模一个进制的数。
解题思路:要发现F(n) = 2 ?f(n)
- 1这个规律,估计要很熟悉fibonacci数列,我明明推出了好多项后但是一点也没有发现规律...
分类:
其他好文 时间:
2014-11-16 23:07:17
阅读次数:
276
Ignatius and the Princess Description "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "T...
分类:
其他好文 时间:
2014-11-16 20:04:47
阅读次数:
204
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 26727 Accepted Submission(s): 12160
Problem Description
In many applicati...
分类:
其他好文 时间:
2014-11-16 17:26:09
阅读次数:
148