- 博客(8)
- 收藏
- 关注
原创 2017青岛赛区亚洲区域赛网络赛 The Dominator of Strings
Problem DescriptionHere you have a set of strings. A dominator is a string of the set dominating all strings else. The string S is dominated by T if S is a substring of T.InputThe in
2017-09-18 17:04:06 646
原创 2017青岛赛区亚洲区域赛网络赛 1011题题解
Problem DescriptionA cubic number is the result of using a whole number in a multiplication three times. For example, 3×3×3=27 so 27 is a cubic number. The first few cubic numbers are 1,8,27,64 an
2017-09-17 18:23:47 986
原创 使用VS2010编写C#程序时总是提示正由另一进程使用,因此该进程无法访问此文件的解决办法
解决办法:1.因为这种情况并不是每次都出现,所以。假设项目名是test1。 先把VS关掉,然后把test1-->bin-->debug-->test1.exe强制删除。那么下次打开的时候,就可以了。因为debug下的test1.exe 每次都会重新生成。2. 选择 调试--->终止调试即可。3.尽量少用或者不用hide()方法,并且运行时
2017-09-16 10:32:39 11707
原创 Digital Roots 求一个数的数字根
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two
2017-09-10 10:16:53 1035
原创 HDU - 1180 BFS 诡异的楼梯
Hogwarts正式开学以后,Harry发现在Hogwarts里,某些楼梯并不是静止不动的,相反,他们每隔一分钟就变动一次方向. 比如下面的例子里,一开始楼梯在竖直方向,一分钟以后它移动到了水平方向,再过一分钟它又回到了竖直方向.Harry发现对他来说很难找到能使得他最快到达目的地的路线,这时Ron(Harry最好的朋友)告诉Harry正好有一个魔法道具可以帮助他寻找这样的路线,而那个魔法道具
2017-09-07 10:41:58 456
原创 无平方因子数
题目:给出正整数n和m,区间[n,m]内的“无平方因子”的数有多少个?整数p无平方因子当且仅当不存在k > 1,使得p是k * k的倍数。1 #include #include #include #include #include using namespace std;const int maxn=100005; //求出根下m内的质数即可int p[maxn]
2017-09-02 09:35:02 1375
原创 C++ 两个高精度数相乘
#include #include #include #include #include using namespace std;const int N=1000;int main(){ string s1,s2; int a[N],b[N],sum[N]; int l1,l2; cin>>s1>>s2; l1=s1.length(); l2=s
2017-09-01 21:20:17 1076
转载 C++ 高精度加法 高精度减法 高精度乘法1
转自:http://blog.sina.com.cn/s/blog_4fdb102b010087ng.html前言:由于计算机运算是有模运算,数据范围的表示有一定限制,如整型int(C++中int 与long相同)表达范围是(-2^31~2^31-1),unsigned long(无符号整数)是(0~2^32-1),都约为几十亿.如果采用实数型,则能保存最大的double只能提供15~16位的
2017-09-01 20:44:21 2202
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人