- 博客(16)
- 收藏
- 关注

原创 Tensorflow app.flags.DEFINE_XXX函数
最近在看一篇论文,其中源码涉及到Tensorflow,且其中含有app.flags.DEFINE_XXX函数,经自己实验发现: import tensorflow as tf #第一个是参数名称,第二个参数是默认值,第三个是参数描述 tf.app.flags.DEFINE_string('str_name', 'default_value',"description1") tf.a...
2018-03-14 16:47:53
435
原创 LightOJ 1092 Lighted Panels 状压DP
Description You are given an R x C 2D grid consisting of several light panels. Each cell contains either a '*' or a '.'. '*' means the panel is on, and '.' means it's off. If you touch a panel, i
2016-08-28 22:24:40
734
原创 POJ2677,HDU2224【双调欧几里得模板题】
双调欧几里得旅行商问题是一个经典动态规划问题。《算法导论(第二版)》思考题15-1和北京大学OJ2677都出现了这个题目。 旅行商问题描述:平面上n个点,确定一条连接各点的最短闭合旅程。这个解的一般形式为NP的(在多项式时间内可以求出) J.L. Bentley 建议通过只考虑双调旅程(bitonictour)来简化问题,这种旅程即为从最左点开始,严格地从左到右直至最右点,然后
2016-03-30 19:05:15
1136
转载 【图论500】
=============================以下是最小生成树+并查集====================================== 【HDU】 1213 How Many Tables 基础并查集★ 1272 小希的迷宫 基础并查集★ 1325&&poj1308 Is It A
2015-11-18 22:15:35
564
原创 (二分图匹配) Matrix
F - Matrix Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Description standard input/output Statements You're given a matrix with n rows and n columns
2015-11-08 23:29:08
373
原创 POJ2135
Farm Tour Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13644 Accepted: 5169 Description When FJ's friends visit him on the farm, he likes to show them a
2015-10-13 11:34:38
500
转载 网络流问题Ford-Fulkerson算法详解
【转载推荐理由】:刚刚一直在看网络流问题Ford-Fulkerson算法的实现,正在疑惑为什么要添加反向边,一直不理解反向边在这个算法中至关重要的作用!而这片博客一开始举的这个例子可以帮助理解反向边的重要作用!!看完博文之后可以在回过头来看看这个实例!(Ford-Fulkerson算法的同一个实现代码,有反向边求出来的是第二种情况,没有的话是第一种,不信的可以试一试!) 主要讲解最大流问
2015-10-05 21:36:32
3973
1
原创 hdu1203 01背包+简单概率论
I NEED A OFFER! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 20649 Accepted Submission(s): 8244 Problem Description Speakless
2015-09-10 22:54:20
465
原创 HDU2546【01背包问题模板题】
饭卡 Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16844 Accepted Submission(s): 5855 Problem Description 电子科大本部食堂的饭卡有一种
2015-09-10 21:35:43
638
转载 hdu3389
HDU 3389 (Nim博弈变形) Game 参考了众巨巨的博客,现在重新整理一下自己的思路。 首先在纸上画了一下转移图: 1 3 4号盒子是不能够再转移卡片到其他盒子中去了的,其他盒子中的卡片经过若干步的转移最终也一定会转移到1 3 4号盒子中去。 具体来说,n % 6 == 0 或 2 或 5的盒子,经过奇数步转移到1 3 4中去,其他的则须经过偶数步才能转移过去。
2015-08-31 21:26:54
1119
原创 HDU 1760 A New Tetris Game
J - A New Tetris Game Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description 曾经,Lele和他姐姐最喜欢,玩得最久的游戏就是俄罗斯方块(Tetris)了。 渐渐得,Lele发觉,玩这个游戏只需要
2015-08-31 20:55:49
581
原创 HDU1536 SG函数的简单应用
S-Nim Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5571 Accepted Submission(s): 2383 Problem Description Arthur and his siste
2015-08-30 00:15:59
396
原创 ZOJ 2319【二维最长递增子序列】
【题目链接】:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2319 【原题】: Beautiful People Time Limit: 5 Seconds Memory Limit: 32768 KB Special Judge The most prestigious spor
2015-08-25 14:38:42
590
原创 【HDU2112】一道很猥琐的最短路水题。。
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2112 HDU Today Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 19812 Accepted Submiss
2015-08-20 02:44:19
431
原创 【POJ 2823】Sliding Window (单调队列问题!!坑呀!!)
POJ2823 Sliding Window Description An array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only s
2015-08-17 22:53:20
1841
原创 HDU3779 Railroad JAVA版题解+深搜
Railroad Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 70 Accepted Submission(s): 24 Problem Description A train yard is a c
2015-07-17 01:31:43
509
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人