05 2016 档案
摘要:卸载tomcat的时候服务用cmd运行不能删除 需要用管理员才能删除 手动删除Win7系统服务列表中残留服务的操作步骤分享给大家,在使用深度Win7系统过程中,将一些程序删除后,有些在服务列表中还会残留服务,此时可通过手动来删除,具体步骤如下: 1、按“Win+R”打开“运行”窗口,输入“servi
阅读全文
摘要:新下载的Tomcat7.0 解压缩完了运行tomcat7.exe屏幕一闪就没了 运行tomcat7w.exe弹出个筐指定的服务并未以已安装的服务存在 Unable to open the Service 'tomcat6' 我安装了tomcat7,双击startup.bat可以正常启动Tomcat,
阅读全文
摘要:青蛙的约会 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1061 青蛙的约会 Submit Status Practice POJ 1061 Descr
阅读全文
摘要:C - Geometric Shapes Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3449 C - Geometric Shapes Submit
阅读全文
摘要:题目链接 题目链接 题意:给出n个矩形,求能覆盖所有矩形的最小的矩形的面积。 题解:对所有点求凸包,然后旋转卡壳,对没一条边求该边的最左最右和最上的三个点。 利用叉积面积求高,利用点积的性质求最左右点和长度,更新面积最小值即可。 #include<iostream> #include<cstdio>
阅读全文
摘要:A - Building Fence Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64u Submit Status A - Building Fence Submit Status Description Lon
阅读全文
摘要:Triangle Time Limit: 3000MS Memory Limit: 30000KB 64bit IO Format: %I64d & %I64u Submit Status Triangle Time Limit: 3000MS Memory Limit: 30000KB 64bit
阅读全文
摘要:D - Beauty Contest Time Limit:3000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status D - Beauty Contest Submit Status Description Bes
阅读全文
摘要:math.h是c语言里的 cmath是c++里的 fabs是对小数求绝对值 abs是对整数绝对值 用math.h里的abs对小数不能求绝对值- - fabs对小数取绝对值 abs是对整数 现在要对一个小数x取 用math.h头文件 abs(x) 不能运行 cmath可以 fabs两个都可以 亲测。
阅读全文
摘要:传送门 刘汝佳《算法竞赛入门经典》P272例题6包装木板 题意:有n块矩形木板,你的任务是用一个面积尽量小的凸多边形把它们抱起来,并计算出木板占整个包装面积的百分比。 输入:t组数据,每组先输入木板个数n,接下来n行,每行x,y,w,h,j。(x,y)是木板中心的坐标,w是宽,h是高,j是顺时针旋转
阅读全文
摘要:倒置字符串函数reverse:用于倒置字符串s中的各个字符的位置,如原来字符串中如果初始值为123456,则通过reverse函数可将其倒置为654321,程序如下:#include<stdio.h>#include<string.h>void reverse(char s[]){ int c,j,
阅读全文
摘要:F - Pipe Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1039 F - Pipe Submit Status Practice POJ 1039
阅读全文
摘要:已知直线上两点P1 P2,求直线的一般式方程。已知直线上的两点P1(X1,Y1) P2(X2,Y2), P1 P2两点不重合。求该直线的一般式方程AX+BY+C=0 解当x1=x2时,直线方程为x-x1=0当y1=y2时,直线方程为y-y1=0当x1≠x2,y1≠y2时,直线的斜率k=(y2-y1)
阅读全文
摘要:威尔逊定理、欧拉定理、孙子定理、费马小定理并称数论四大定理。 威尔逊定理 编辑 威尔逊定理 若p为质数,则p可整除(p-1)!+1。 欧拉定理 欧拉定理 欧拉定理,也称费马-欧拉定理。 若n,a为正整数,且n,a互素,即gcd(a,n) = 1,则 a^φ(n) ≡ 1 (mod n) 孙子定理 孙
阅读全文
摘要:fopen()函数功能:open a file. 原型:FILE * fopen(const char * path,const char * mode); 需要#include<stdio.h> 返回值:文件顺利打开后,指向该流的文件指针就会被返回。如果文件打开失败则返回NULL,并把错误代码存在
阅读全文
摘要:这是一个求一个排序的下一个排列的函数,可以遍历全排列,要包含头文件<algorithm>与之完全相反的函数还有prev_permutation (1) int 类型的next_permutation int main(){ int a[3];a[0]=1;a[1]=2;a[2]=3; do{cout
阅读全文
摘要:D - Kadj Squares Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status D - Kadj Squares Submit Status Description In this
阅读全文
摘要:A - Toy Storage Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status A - Toy Storage Submit Status Description Mom and d
阅读全文
摘要:B - TOYS Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status B - TOYS Submit Status Description Calculate the number of
阅读全文
摘要:E - Domination Time Limit:8000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status E - Domination Submit Status Description Edward is th
阅读全文
摘要:D - LOOPS Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status D - LOOPS Submit Status Description Akemi Homura is a Mah
阅读全文
摘要:C - Collecting Bugs Time Limit:10000MS Memory Limit:64000KB 64bit IO Format:%I64d & %I64u Submit Status C - Collecting Bugs Submit Status Description
阅读全文
摘要:B - Card Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status B - Card Submit Status Description There are x cards on th
阅读全文
摘要:Professor Tian Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 870 Accepted Submission(s): 479 Pr
阅读全文
摘要:B - Dice Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4652 B - Dice Submit Status Practice HDU 4652
阅读全文
摘要:A - Walk Time Limit:15000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 5001 A - Walk Submit Status Practice HDU 500
阅读全文

浙公网安备 33010602011771号