上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
  2015年8月19日
摘要: http://wenku.baidu.com/link?url=Nq_9vn-F1a8xOarR8XVdGVzMISDDQETGRU2-5q9moFr8SVqLhsOcDgUDMfCR_994pNiHtYFoK0lTe0BXnl4tNIc-UWas7VnIvvfE8hw8UwOcdq提出的一种分治手... 阅读全文
posted @ 2015-08-19 19:48 gaolzzxin 阅读(1917) 评论(0) 推荐(0) 编辑
  2015年7月26日
摘要: Bhttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5552输入n,表示有n个数1到n。A先拿,B后拿,依次拿,每次可以拿任意一个数,同时会删去这个数的所有因子,最后谁没得拿了谁输。解法:推了前几个,0,a输,别的a都能赢,证明没想... 阅读全文
posted @ 2015-07-26 20:30 gaolzzxin 阅读(164) 评论(0) 推荐(0) 编辑
  2015年7月22日
摘要: Ahttp://acm.hdu.edu.cn/showproblem.php?pid=5112输入n个时刻和位置,问那两个时刻间速度最快。解法:按照时间排序,然后依次求相邻两个之间的速度,速度=ds/dt 1 #include 2 #include 3 using namespace std; 4 ... 阅读全文
posted @ 2015-07-22 16:37 gaolzzxin 阅读(183) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/100548A 签到问一个序列是不是yes,yes的序列满足每个数都是3的倍数。 1 #include 2 int main(){ 3 int t,n,x; 4 while(~scanf("%d",&t)){ 5 i... 阅读全文
posted @ 2015-07-22 14:59 gaolzzxin 阅读(199) 评论(0) 推荐(0) 编辑
  2015年7月19日
摘要: Ahttp://acm.hdu.edu.cn/showproblem.php?pid=5070先跳过。Bhttp://acm.hdu.edu.cn/showproblem.php?pid=5071维护一个聊天队列,有8种操作,每次操作完要打印对应的信息,认真读题,按题意模拟,一维数组模拟队列就可以,... 阅读全文
posted @ 2015-07-19 15:44 gaolzzxin 阅读(205) 评论(0) 推荐(0) 编辑
  2015年7月16日
摘要: A Average Scorehttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5373a班有n个人,b班有m个人,bob在a班,现在知道除了bob以外的所有人的成绩,还知道bob如果从a班转到b班,两个班的平均成绩都会提高,问bo... 阅读全文
posted @ 2015-07-16 16:56 gaolzzxin 阅读(322) 评论(0) 推荐(0) 编辑
  2015年5月14日
摘要: http://poj.org/problem?id=1330 1 #include 2 #include 3 #include 4 #define mt(a,b) memset(a,b,sizeof(a)) 5 using namespace std; 6 const int inf=0... 阅读全文
posted @ 2015-05-14 22:40 gaolzzxin 阅读(183) 评论(0) 推荐(0) 编辑
  2015年5月11日
摘要: 9-1 http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3466书上是递推的,我写了个记忆化搜索dp有3种决策,左边的车,右边的车,原地不动, 1 #incl... 阅读全文
posted @ 2015-05-11 19:11 gaolzzxin 阅读(148) 评论(0) 推荐(0) 编辑
  2015年5月8日
摘要: linux 命令 批量处理数据#!/bin/bashnow=`pwd`echo -e "${now} \n"outid=1for file in ${now}/*.mtxdo for seed in 0 1 2 3 4 5 6 7 8 9 do ans=`./fastvc ${file} 50 ${... 阅读全文
posted @ 2015-05-08 20:05 gaolzzxin 阅读(90) 评论(0) 推荐(0) 编辑
  2015年5月7日
摘要: http://wenku.baidu.com/link?url=953T6GZCnaBzwr4YqPFUT4oOyYr4wyOnXlCLO1OUYZkaJWh2fTs634SM7ZpYiTKkpmYXw-G7XihoOWBPbO4DPhShoU64pw5vnvW_CUX_eTi1 在根目录下的usr... 阅读全文
posted @ 2015-05-07 14:42 gaolzzxin 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页