摘要: 玻尔兹曼分布 \[ 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 阅读(238) 评论(2) 推荐(0) 编辑
摘要: 小学数学 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 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 一直没有好好学,就跟着教程写一遍吧 参考资料 Pytorch官方文档中文版 http://pytorch123.com/ 使用CIFAR数据集 图片尺寸为 3通道32*32 主要的使用的函数 torch 基础包, utils 还有一些函数用的挺多的 torch.nn 神经网络各种模块应有尽有, 卷积 阅读全文
posted @ 2020-07-18 11:28 CrosseaLL 阅读(324) 评论(1) 推荐(0) 编辑
摘要: 选择 本科学习一些理论课程, 所以想读研深入的理解计算机专业的理论和应用 未来会从事计算机方面的工作,理想的职业是高校或者IT大厂 现有差距 理论知识储备较为缺乏 数学和代码能力还需提升 一年短期计划 提升编程技术水平,精通一个深度学习框架 顺利毕业 提前进入研究生的工作当中 课程期待 希望通过课程 阅读全文
posted @ 2020-07-17 09:44 CrosseaLL 阅读(188) 评论(1) 推荐(1) 编辑
摘要: 减去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 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 直接暴力做法,排序之后去掉最大最小就行 线性做法应该就直接记录最大最小,但是没必要 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 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 直接判断单价和单买就可以 #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 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 水 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 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 设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 阅读(96) 评论(0) 推荐(0) 编辑