自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

恒治学

Best Wishes.

  • 博客(535)
  • 收藏
  • 关注

原创 【论文笔记】CIKM2020 S3-Rec: Self-Supervised Learning for Sequential Recommendation with MIM

PROBLEM现有序列推荐模型通常依赖商品预测损失来学习模型参数或数据表示,然而使用此损失进行训练的模型往往被证明遭受数据稀疏性问题. 因为其过于强调最终表现,没能充分捕捉和利用序列推荐的上下文数据以及序列数据间的关联与融合.SOLUTION提出S3-Rec模型,代表基于自注意力神经架构的用于序列推荐的自监督学习.利用数据固有关联分离自监督信号,通过预训练方法增强数据表示.分配四个辅助自监督目标,利用共同信息最大化 (MIM) 以分别学习商品-属性、序列-商品、序列-属性和序列-子序列的关联,MI

2021-05-18 22:13:05 1583

原创 【洛谷】P2678 [NOIP2015 提高组] 跳石头

#include <iostream>#include <cstdio>#include <cstring>using namespace std;int l, n, m, pre, cur, last;int dis[50010];void bi(int l, int r){ int cnt = 0, mid = (l+r)/2; for (int i = 1; i <= n+1; i++){ if (dis[i] &l

2021-05-10 17:58:03 351 2

原创 【洛谷】P1219 [USACO1.5]八皇后 Checker Challenge

#include <iostream>#include <cstdio>#include <cstring>using namespace std;int n, cnt = 0;int idx[15], col[15], ud[30], ld[30];void out(){ cnt++; if (cnt <= 3){ cout << idx[1]; for (int i = 2; i <=

2021-05-10 16:29:11 295

原创 【洛谷】P5788 【模板】单调栈

#include <iostream>#include <cstdio>#include <stack>#include <utility>using namespace std;stack<pair<int, int> > s;int t[3000010];int n, cur, f;int main(){ ios::sync_with_stdio(false); cin.tie(0); cou

2021-05-10 15:35:06 141

原创 【洛谷】P4387 【深基15.习9】验证栈序列

One#include <iostream>#include <cstdio>#include <stack>using namespace std;int q, n;int pushed[100010], poped[100010];int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);// freopen("in.txt", "r", stdin)

2021-05-10 09:43:17 135 1

原创 【洛谷】P1160 队列安排

#include <iostream>#include <algorithm>#include <cstdio>#include <cstring>#include <list>using namespace std;int n, m, k, p;list<int>::iterator t[100010];list<int> v;int vis[100010];int main(){ ios::s

2021-05-09 22:43:44 79

原创 【洛谷】P2440 木材加工

#include <iostream>#include <string>#include <algorithm>#include <cstdio>#include <cmath>using namespace std;int n, k, pre = 0;int t[100010];void bi(int l, int r){ int mid = (l+r)/2, sum = 0; if (mid == 0){

2021-05-09 18:00:48 94

原创 【洛谷】P1873 砍树

#include <iostream>#include <string>#include <algorithm>#include <cstdio>#include <cmath>using namespace std;typedef long long ll;ll n, m;ll t[1000010];void bi(ll l, ll r){ ll mid = (l+r)/2, sum = 0; if (mid =

2021-05-09 17:09:08 82

原创 【洛谷】P4995 跳跳!

#include <iostream>#include <string>#include <algorithm>#include <queue>#include <cstdio>#include <vector>#include <functional>using namespace std;int n;priority_queue<int, vector<int>, greater&lt

2021-05-09 15:51:48 88

原创 【洛谷】P1106 删数问题

#include <iostream>#include <cstdio>#include <string>#include <algorithm>using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); freopen("in.txt", "r", stdin); freopen("out.txt"

2021-05-09 15:21:15 94

原创 【洛谷】P1990 覆盖墙壁

#include <iostream>long long t[1000010];int n;int main(){ t[0] = 1; t[1] = 1; t[2] = 2; std::cin >> n; for (int i = 3; i <= n; i++) t[i] = ((t[i-1]<<1)%10000+t[i-3])%10000; std::cout << t[n]%10000; return 0

2021-05-09 14:09:44 65

原创 【洛谷】P1928 外星密码

#include <iostream>#include <cstdio>#include <string>using namespace std;string dx(){ int d; char c; string s = "", tmp; while (cin >> c){ if (c == '['){ cin >> d; tmp = dx()

2021-05-08 16:19:11 177

原创 【洛谷】P3799 妖梦拼木棒

#include <iostream>#include <cstdio>#include <algorithm>#include <cmath>#include <cstring>#include <string>#include <set>#include <iterator>#include <algorithm>#include <vector>using na

2021-05-08 09:44:41 105

原创 【洛谷】P1088 [NOIP2004 普及组] 火星人

One#include <iostream>#include <cstdio>#include <algorithm>#include <cmath>using namespace std;int n, m;int t[10010];int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); // freopen("in.txt", "r",

2021-05-08 08:27:39 294

原创 【洛谷】P5143 攀爬者

#include <iostream>#include <cstdio>#include <algorithm>#include <cmath>using namespace std;int n;struct p{ int x; int y; int z;}ps[50010];bool cmp(struct p a, struct p b){ return a.z < b.z;}int mai

2021-05-07 20:36:31 286

原创 【洛谷】P1923 【深基9.例4】求第 k 小的数

One#include <iostream>#include <cstdio>using namespace std;int n, k;int t[5000010];void findk(int l, int r){ int i = l, j = r, mid = t[(l+r)/2]; do { while (t[i] < mid) i++; while (t[j] > mid) j--;

2021-05-07 20:15:53 190

原创 【洛谷】P1601 A+B Problem(高精)

#include <iostream>#include <string>#include <algorithm>using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);// freopen("in.txt", "r", stdin);// freopen("out.txt", "w", stdout);

2021-05-07 17:59:53 69

原创 【洛谷】P1303 A*B Problem

#include <iostream>#include <string>#include <algorithm>#include <vector>using namespace std;vector<string> v;string bigadd(string a, string b){ string c=""; int i = a.size()-1, j = b.size()-1, adv = 0; wh

2021-05-07 17:57:32 81

原创 【深度学习】关于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 3189

原创 【研究生】Mark一个导师评价查询网站

研控https://www.yankong.org/

2021-04-16 21:31:06 15234

原创 【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 3093 1

原创 【Mac】强制退出程序

主页点击左上角的苹果标志弹出页面中点击强制退出

2021-04-16 20:55:28 61

原创 【LaTeX】修改字体大小

\tiny\scriptsize\footnotesize\small\normalsize\large\Large\LARGE\huge\Huge

2021-04-16 20:52:36 271

原创 【LaTeX】Mark若干LaTeX入门学习网站

一份其实很短的 LaTeX 入门文档

2021-04-16 20:48:33 88

原创 【论文文献】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 398

原创 【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 829

原创 【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 &gt

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 54

原创 【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 2814

原创 【C++】取反之!和~

!是逻辑取反,只有两种结果0和非0.~是按位取反,数值的二进制按位0→1,1→00\rightarrow1,1\rightarrow00→1,1→0.

2021-04-06 11:25:35 2690

原创 【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 130

原创 【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 333

原创 【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 2662

原创 【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 &lt

2021-04-03 17:19:16 85

原创 【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 71

原创 【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 112

原创 【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 &lt

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 133

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除