- 博客(26)
- 收藏
- 关注
原创 【深度学习】关于Permutation Invariant的解释
Permutation Invariant指的是特征之间没有空间位置关系.如多层感知机,改变像素的位置对最后的结果没有影响.f((x1,x2,x3))=f((x2,x1,x3))=f((x3,x1,x2))f((x_1,x_2,x_3))=f((x_2,x_1,x_3))=f((x_3,x_1,x_2))f((x1,x2,x3))=f((x2,x1,x3))=f((x3,x1,x2))但对卷积网络而言,特征之间则有空间位置关系.以上解释参考以下问题的回答.What does “p
2021-04-16 22:00:45 3120
原创 【Sublime】Mac版Preferences无法打开解决方法
打开首选项,与Preferences功能等同.如仍需Preferences,前往文件夹/Users/YourUserName/Library/Application Support/Sublime Text 3/Packages/,找到ZZZZZZZZ-Localization,移出备份,重启Sublime即可.如果需要还原首选项,将之前备份的ZZZZZZZZ-Localization移回相应位置即可....
2021-04-16 21:25:42 3057 1
原创 【LaTeX】修改字体大小
\tiny\scriptsize\footnotesize\small\normalsize\large\Large\LARGE\huge\Huge
2021-04-16 20:52:36 261
原创 【论文文献】Mark若干实用的论文文献查找网站
文献检索与下载arxivhttps://arxiv.org/谷粉学术https://gfsoso.99lb.net/Scidownhttps://www.xueky.com/Sci-Hubhttps://lovescihub.wordpress.com/ScienceDirecthttps://www.sciencedirect.com/数据挖掘顶会IJCAIhttps://www.ijcai.org/Digital LibraryACMhttps://dl.acm.or
2021-04-16 20:45:24 395
原创 【C++】去除字符串前后的空白字符
string blanks("\f\v\r\t\n ");str.erase(0,str.find_first_not_of(blanks));str.erase(str.find_last_not_of(blanks) + 1);
2021-04-16 20:17:25 827
原创 【CSP】201509-2 日期计算
#include <iostream>#include <cstdio>using namespace std;int y, d, month = 1, day = 1;int ms[14] = {0,31,28,31,30,31,30,31,31,30,31,30,31};int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> y >
2021-04-10 20:53:30 50
原创 【CSP】201509-1 数列分段
#include <iostream>#include <cstdio>using namespace std;int n, pre, cur, cnt = 1;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> n >> pre; while (--n){ cin >> cur;
2021-04-10 20:13:06 59
原创 【模板】拓扑排序
#include <iostream>#include <cstdio>#include <vector>#include <queue>#include <cstring> // memsetusing namespace std;const int MAXN = 110;#define mm(a) memset(a, 0, sizeof(a))queue<int> tpq; // 保存入度为0的结点in
2021-04-06 15:27:59 53
原创 【C++】结构体构造函数
struct node{ int data; string str; char x; // 自定义构造函数 void init(int a, string b, char c){ this->data = a; this->str = b; this->x = c; } // 无参数构造函数 node(): data(), str(), x(){} // 有参数构造函数
2021-04-06 11:38:31 2791
原创 【C++】取反之!和~
!是逻辑取反,只有两种结果0和非0.~是按位取反,数值的二进制按位0→1,1→00\rightarrow1,1\rightarrow00→1,1→0.
2021-04-06 11:25:35 2681
原创 【CSP】202009-3 点亮数字人生 拓扑排序 模拟
#include <iostream>#include <cstdio>#include <string> // substr c_str#include <vector>#include <cstdlib> // atoi#include <cstring> // memset#include <queue>using namespace std;#define mm(a) memset(a, 0
2021-04-06 11:20:03 122
原创 【C++】fill()函数、fill_n()函数以及memset()函数
全赋值0或-1memset()函数只能赋值0或-1.#include <cstring>// 正常memset(a, 0, sizeof(a));// 宏定义#define mm(a) memset(a, 0, sizeof(a))自定义全赋值、区间赋值fill()函数可定义其他值,且支持区间赋值.int a[20];fill(a, a+10, 3);fill_n()函数从迭代器指向的元素开始,将指定数量的元素设置为给定的值.int a[20];fill_n(a,
2021-04-04 10:30:48 329
原创 【C++】string查找子串次数及位置
string s = "..."; //母串string sub = "..."; //子串int idx = 0; //开始查找的下标 & 找到子串的首字母下标int cnt = 0; //子串出现次数 //s.find(sub, idx)从s的idx处开始查找subwhile ((idx = s.find(sub, idx)) != s.npos){ idx++; cnt++;}...
2021-04-04 09:58:42 2634
原创 【CSP】201803-2 碰撞的小球 模拟
#include <iostream>#include <cstdio>#include <algorithm>using namespace std;struct ball{ int begin; //初始球位序 int idx; //球坐标 int d; //球方向}b[110];// 按照球坐标排序, 便于计算碰撞bool cmp(ball x, ball y){ return x.idx <
2021-04-03 17:19:16 82
原创 【CSP】201803-1 跳一跳 模拟
#include <iostream>#include <cstdio>using namespace std;int main(){ int n, ad = 0, sum = 0; cin >> n; while (n){ if (n == 1){ ad = 1; sum += ad; } else { if (ad%2
2021-04-03 16:30:11 70
原创 【CSP】201809-4 再卖菜 DP
#include <iostream>#include <cstdio>#include <cmath>using namespace std;const int mx = 310;// a->第二天各商店菜价// d[v][q][r] = 1->第一天位置p的菜价为q、位置p+1的菜价为r时满足第二天位置[p+1,n]的菜价约束// p[v][q][r]->满足条件的最小的第v+2天的菜价, 用于路径输出int a[mx], d[m
2021-04-03 16:10:30 110
原创 【CSP】201809-2 买菜 模拟
#include <iostream>#include <cstdio>using namespace std;int t[1000010];int n, x, y, mx = 0, cnt = 0;int main(){ cin >> n; for (int _ = 0; _ < 2*n; _++){ cin >> x >> y; if (y > mx) mx = y;
2021-04-03 14:47:05 83
原创 【CSP】201809-1 卖菜 模拟
#include <iostream>#include <cstdio>#include <vector>using namespace std;int main(){ int n; cin >> n; vector<int> f(n+1), s(n+1); for (int i = 0; i < n; i++) cin >> f[i]; for (int i = 0; i <
2021-04-03 14:31:00 57
原创 【CSP】202006-4 1246 (digits) DP (64‘) 矩阵快速幂 (96‘)
#include <iostream>#include <cstdio>#include <map>using namespace std;typedef long long ll;const int state = 14;const int mod = 998244353;//矩阵快速幂struct mat{ ll m[state+1][state+1];}unit, a;void init(){ for (int i = 1;
2021-04-03 14:00:51 132
原创 【CSP】201812-2 小明放学 模拟
#include <iostream>#include <cstdio>using namespace std;typedef long long ll;ll r, y, g;// from state k to greenll wait_for(ll k, ll p, ll t){ ll wait_time = 0; //time pass total rounds p = p % (r+y+g); // begin red
2021-04-02 17:05:42 87
原创 【CSP】201812-1 小明上学 模拟
#include <iostream>#include <cstdio>using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); int r, y, g, n, k, t, sum = 0; cin >> r >> y >> g >> n; while (n--){ cin >
2021-04-01 22:15:24 56
原创 【C++】字符串与十六进制相互转换
字符串转十六进制string s=;sscanf(s.c_str(), "%x", &x);十六进制转字符串char str[10];sprintf(str, "%08X", x);应用实例【CSP】201903-3 损坏的RAID5
2021-04-01 21:21:25 1429
原创 【CSP】201903-3 损坏的RAID5 推导
#include <iostream>#include <cstdio>#include <string>#include <iomanip>#include <vector>#include <utility>#include <algorithm>#include <bits/stdc++.h>using namespace std;typedef long long ll;//
2021-04-01 11:03:44 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人