会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Crossea
所念皆星河,星河皆是你,星河不可及
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2020年7月21日
模拟退火求TSP问题的近似解
摘要: 玻尔兹曼分布 \[ P_T(X = i) = \frac{e^{-\frac{E(i)}{KT}}}{\sum_{j\in S}e^{-\frac{E(j)}{KT}}}\\ \\E(i) 表示在i状态下的温度 \\S表示所有的状态 \\K表示玻尔兹曼常数 \\T为材料当前的温度 \] 思路介绍 如
阅读全文
posted @ 2020-07-21 09:38 CrosseaLL
阅读(257)
评论(2)
推荐(0)
2020年7月19日
Leetcode Weekly Contest 198 翻车实录
摘要: 小学数学 class Solution { public: int numWaterBottles(int a, int b) { int rem = a; int cnt = a; while(a/b){ int temp = a/b; cnt += a/b; a %= b; a += temp;
阅读全文
posted @ 2020-07-19 14:02 CrosseaLL
阅读(74)
评论(0)
推荐(0)
2020年7月18日
CNN对CIFAR10分类
摘要: 一直没有好好学,就跟着教程写一遍吧 参考资料 Pytorch官方文档中文版 http://pytorch123.com/ 使用CIFAR数据集 图片尺寸为 3通道32*32 主要的使用的函数 torch 基础包, utils 还有一些函数用的挺多的 torch.nn 神经网络各种模块应有尽有, 卷积
阅读全文
posted @ 2020-07-18 11:28 CrosseaLL
阅读(369)
评论(1)
推荐(0)
2020年7月17日
咸鱼进阶之路
摘要: 选择 本科学习一些理论课程, 所以想读研深入的理解计算机专业的理论和应用 未来会从事计算机方面的工作,理想的职业是高校或者IT大厂 现有差距 理论知识储备较为缺乏 数学和代码能力还需提升 一年短期计划 提升编程技术水平,精通一个深度学习框架 顺利毕业 提前进入研究生的工作当中 课程期待 希望通过课程
阅读全文
posted @ 2020-07-17 09:44 CrosseaLL
阅读(196)
评论(1)
推荐(1)
2020年6月29日
Codeforces Round #653 (Div. 3) A~E1
摘要: 减去y,相除, 直接求 -- #include<bits/stdc++.h> #include<string.h> using namespace std; #define rep(i,j,k) for(LL i=(j); i<(k); ++i) #define pb push_back #defi
阅读全文
posted @ 2020-06-29 22:38 CrosseaLL
阅读(121)
评论(0)
推荐(0)
2020年6月28日
leetcode 第 195 场周赛
摘要: map记录一波到过的点,不过应该用哈希表更快 class Solution { public: bool isPathCrossing(string path) { map<pair<int, int>, int> mmp; int x=0,y=0; mmp[make_pair(0,0)] =1;
阅读全文
posted @ 2020-06-28 14:52 CrosseaLL
阅读(149)
评论(0)
推荐(0)
leetcode 第 29 场双周赛
摘要: 直接暴力做法,排序之后去掉最大最小就行 线性做法应该就直接记录最大最小,但是没必要 class Solution { public: double average(vector<int>& a) { sort(a.begin(), a.end()); double ans = 0; for(auto
阅读全文
posted @ 2020-06-28 10:16 CrosseaLL
阅读(112)
评论(0)
推荐(0)
2020年6月26日
Educational Codeforces Round 90 (Rated for Div. 2) A~C
摘要: 直接判断单价和单买就可以 #include<bits/stdc++.h> #include<string.h> using namespace std; #define rep(i,j,k) for(LL i=(j); i<(k); ++i) #define pb push_back #define
阅读全文
posted @ 2020-06-26 09:53 CrosseaLL
阅读(157)
评论(0)
推荐(0)
2020年6月7日
leetcode周赛192
摘要: 水 class Solution { public: vector<int> shuffle(vector<int>& nums, int n) { vector<int> ans(2*n); for(int i=0; i<n; i++){ ans[2*i]=nums[i]; ans[2*i+1]
阅读全文
posted @ 2020-06-07 15:34 CrosseaLL
阅读(130)
评论(0)
推荐(0)
2020年5月27日
Codeforces Round #597 (Div. 2) C dp
摘要: 设dpi为前面长度为i的字符串的所有可能组合,如果 s[i]==s[i-1]并且s[i]∈{u,n} 那么dp[i]=dp[i-1]+dp[i-2]否则dp[i]=dp[i-1],最后结果就是dp[s[i].length] #include<bits/stdc++.h> #include<strin
阅读全文
posted @ 2020-05-27 19:37 CrosseaLL
阅读(103)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告