上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: Sample Input 3 1 3 5 2 1 3 5 1 3 5 99 69 3 1 3 5 2 1 3 5 1 3 5 99 69 Sample Output Case #1: No Case #2: Yes Case #3: Yes Hint 对于第一组测试数据:111 mod 5 = 1, 阅读全文
posted @ 2017-08-04 23:02 kimsimple 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在Tomcat安装目录中,webapps默认为部署网站用的目录。webapps/ROOT是网站的根目录,其它目录都是网站的子目录,如webapps\jsp-examples目录。但是,当我们新建一个子目录时,却并不能在浏览器里正常访问。就连HTML文件也访问不了。为什么会出现这种情况呢? 原来,在T 阅读全文
posted @ 2017-08-02 07:03 kimsimple 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: Problem A Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 463 Accepted Submission(s): 162 Problem 阅读全文
posted @ 2017-08-01 19:19 kimsimple 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1、前提条件:安装软件包的时候,被我手动终止了(可能出错原因)[root@dhcp yum.repos.d]# yum clean allrpmdb: Thread/process 4541/140619363587840 failed: Thread died in Berkeley DB lib 阅读全文
posted @ 2017-07-29 23:17 kimsimple 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; const int N = 1e6+5; char a[N]; int main() { scanf("%s",a+1); int n = strlen(a+1); int l = 1,r = n; while(l = 0 && a[r] == '0') r--; ... 阅读全文
posted @ 2017-07-25 23:18 kimsimple 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1073 约瑟夫环 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1073 约瑟夫环 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1073 约瑟夫环 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 N个人 阅读全文
posted @ 2017-07-20 23:58 kimsimple 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 2006 飞行员配对(二分图最大匹配) 题目来源: 网络流24题 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 2006 飞行员配对(二分图最大匹配) 题目来源: 网络流24题 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 阅读全文
posted @ 2017-07-20 23:55 kimsimple 阅读(301) 评论(0) 推荐(0) 编辑
摘要: prim Kruskal 阅读全文
posted @ 2017-07-20 23:48 kimsimple 阅读(327) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; long long a[50005]; long long sum[50005]; int main() { int n; cin>>n; for(int i=1;i>a[i]; sum[i]=sum[i-1]+a[i];... 阅读全文
posted @ 2017-07-20 23:43 kimsimple 阅读(111) 评论(0) 推荐(0) 编辑
摘要: (x/y) %mod =x*(y^(mod-2))%mod; 在算x,y的时候可以一直mod 来缩小 y^(mod-2)显然是个快速幂 法二:递推 mp[i][j]=mp[i-1][j]+mp[i][j-1] 阅读全文
posted @ 2017-07-20 23:41 kimsimple 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页