传送:UVA - 10487
10487 Closest Sums
Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find
a sum of two distinct numbers from the set, which is...
分类:
其他好文 时间:
2015-04-02 09:16:03
阅读次数:
160
排列组合(卡特兰数)+python高精度~...
分类:
其他好文 时间:
2015-04-02 09:15:03
阅读次数:
135
CocoaPods是一个用来帮助我们管理第三方依赖库的工具。它可以解决库与库之间的依赖关系,下载库的源代码,同时通过创建一个Xcode的workspace来将这些第三方库和我们的工程连接起来,供我们开发使用。
使用CocoaPods的目的是让我们能自动化的、集中的、直观的管理第三方开源库。
cocoapods用法:
1.安装:sudo gem install cocoapods
...
分类:
其他好文 时间:
2015-04-02 09:14:20
阅读次数:
132
本博客讲述了gcc实现静态链接的过程,和其中几个重要的概念。...
分类:
其他好文 时间:
2015-04-02 09:15:16
阅读次数:
174
先献上源代码
#include
class CNumber
{
public:
CNumber()
{
m_nNumber = 1;
}
int m_nNumber;
};
void main()
{
CNumber *pNumber = NULL;
pNumber = new CNumber;
pNumber->m_nNumber = 3;
printf("%d \r\n...
分类:
其他好文 时间:
2015-04-02 09:14:10
阅读次数:
236
Dating with girls(2)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2229 Accepted Submission(s): 638
Problem Description
If you h...
分类:
其他好文 时间:
2015-04-02 09:13:09
阅读次数:
159
还是畅通工程
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 28959 Accepted Submission(s): 12951
Problem Description
某省调查乡村交通状况,得到的统计表中列出了任意...
分类:
其他好文 时间:
2015-04-02 09:13:55
阅读次数:
125
题意:Now tell you two nonnegative integer a and b. Find the nonnegative integer X and integer Y to satisfy X*a + Y*b = 1.
而且要满足X是通解中最小的。
注意X可以取0就可以了
//31MS 1808K 761 B G++
#include
#include
#include
...
分类:
其他好文 时间:
2015-04-02 09:13:28
阅读次数:
143
993 Product of digits
For a given non-negative integer number N, ?nd the minimal natural Q such that the product of all
digits of Q is equal N.
Input
The ?rst line of input contains one po...
分类:
其他好文 时间:
2015-04-02 09:11:13
阅读次数:
219
描述=>G∑(ni),i|nmodP=>G^{\sum {{n\choose i}\text{,i|n}}} modP分析
k=∑Cin,i|n(modP)k=\sum {C_n^i , i|n}\pmod P
G?(P)≡1(modP),?(p)=p?1G^{\phi(P)}\equiv1\pmod P,\quad \phi(p)=p-1
P′=P?1P'=P-1=>GP′≡1(modP)=>G...
分类:
其他好文 时间:
2015-04-02 09:10:51
阅读次数:
183
Problem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He reali...
分类:
其他好文 时间:
2015-04-02 09:12:26
阅读次数:
142
1.题目描述:点击打开链接
2.解题思路:本题利用DFS和欧拉道路解决。本题其实要求找一些路径,使得和要求经过的那些路径能够组成欧拉道路(注意不是欧拉回路,“欧拉道路”是指除了起点和终点外,路径上的其他点的入度等于出度的道路)。首先用dfs来判断连通性,这里用dfs还有另外一个原因就是要统计度数为奇数的点的个数,因为这样的点都需要额外添加一条道路使其度数变为偶数,符合欧拉道路的要求。由于添加一条...
分类:
其他好文 时间:
2015-04-02 09:10:30
阅读次数:
173
排名
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 17116 Accepted Submission(s): 6167
Problem Description
今天的上机考试虽然有实时的Ranklist,但上面的...
分类:
其他好文 时间:
2015-04-02 09:12:05
阅读次数:
281
初学html语言,就先用EditPlus编辑器吧!不仅能体验html标记的魅力,还能增强你对html标记的记忆,不要问为什么,以后就明白了。
1、安装EditPlus
a、下载()后解压;
b、双击"EditPlus3.8.exe"、一路"next",也可选择自己的安装路径;
c、安装安装完毕后第一打开软件需要输入用户名和注册码(见注册码.txt)。...
分类:
其他好文 时间:
2015-04-02 09:08:58
阅读次数:
171
寒冰王座
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 12453 Accepted Submission(s): 6322
Problem Description
不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞...
分类:
其他好文 时间:
2015-04-02 09:08:47
阅读次数:
184
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
//题意:从num[1]~num[n]中取一段连续的序列,使得(num[i]+...+num[j])%p<=k且该序列的和最大化
//令ma=a%mod,mb=b%mod,如果ma<mb,那么(a-b)%mod的值...
分类:
其他好文 时间:
2015-04-02 09:09:16
阅读次数:
174
题目1111:单词替换
时间限制:1 秒
内存限制:32 兆
特殊判题:否
提交:4068
解决:1153
题目描述:
输入一个字符串,以回车结束(字符串长度
输入:
多组数据。每组数据输入包括3行,
第1行是包含多个单词的字符串 s,
第2行是待替换的单词a,(长度
第3行是a将被替换的单词b。(长度
s,...
分类:
其他好文 时间:
2015-04-02 09:10:22
阅读次数:
271