2017年7月4日

tensorflow 中 Cross Entropy算法理解

摘要: 关于tensorflow 中cross entropy 的 numpy实现 阅读全文

posted @ 2017-07-04 13:55 kakamilan 阅读(568) 评论(0) 推荐(0) 编辑

2013年8月6日

修改文件夹中的文件名

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Text.RegularExpressions; 6 using System.IO; 7 8 namespace ConsoleApplication1 9 {10 class Program11 {12 static void Main(string[] args)13 {14 15 Director... 阅读全文

posted @ 2013-08-06 22:35 kakamilan 阅读(236) 评论(0) 推荐(0) 编辑

2013年6月28日

poj 2635

摘要: 大素数的问题,小心大数相乘时越界~~~~ 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 typedef long long ll; 15 #define CLR(arr, what) memset(arr, what, sizeof(arr)) 16 const int MAX = 1000000; ... 阅读全文

posted @ 2013-06-28 16:32 kakamilan 阅读(208) 评论(0) 推荐(0) 编辑

2013年6月7日

poj 1836

摘要: 最长递增子序列的变种,计算两次即可 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <cstring> 阅读全文

posted @ 2013-06-07 20:42 kakamilan 阅读(126) 评论(0) 推荐(0) 编辑

2013年6月6日

poj 3267

摘要: dp问题,采用老办法,递归版本之后加记录。 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <cstring 阅读全文

posted @ 2013-06-06 22:00 kakamilan 阅读(165) 评论(0) 推荐(0) 编辑

2013年6月5日

poj 1276

摘要: 背包问题的转化~~~ 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <cstring>12 #inc 阅读全文

posted @ 2013-06-05 13:19 kakamilan 阅读(146) 评论(0) 推荐(0) 编辑

2013年6月4日

srm 581 DIV1

摘要: 第一题都没做出来,伤不起~~~ 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <map> 6 #include <algorithm> 7 #include <stack> 8 #include <queue> 9 #include <cmath>10 #include <queue>11 using namespace std;12 阅读全文

posted @ 2013-06-04 23:20 kakamilan 阅读(540) 评论(0) 推荐(0) 编辑

2013年6月3日

poj 1837

摘要: dp问题 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <string.h>12 #include 阅读全文

posted @ 2013-06-03 21:56 kakamilan 阅读(142) 评论(0) 推荐(0) 编辑

poj 2488

摘要: 深度遍历,记住字典序很重要 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime>10 #include <set>11 #include <string.h>12 阅读全文

posted @ 2013-06-03 16:51 kakamilan 阅读(188) 评论(0) 推荐(0) 编辑

2013年5月31日

poj 2513

摘要: trie树+并查集,蛮好玩 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 #include <cmath> 6 #include <map> 7 #include <algorithm> 8 #include <list> 9 #include <ctime> 10 #include <set> 11 #include <string.h> 阅读全文

posted @ 2013-05-31 13:22 kakamilan 阅读(226) 评论(0) 推荐(0) 编辑

导航