01 2021 档案

摘要:A.Puzzle From the Future #include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while(t--){ int n; cin >> n; string s; cin >> s; 阅读全文 »
posted @ 2021-01-26 00:34 Hoppz 阅读(48) 评论(0) 推荐(0) 编辑
摘要:A - Biorhythms 题目链接 #include <iostream> #include <cstring> #include <algorithm> #include <cstdio> using namespace std; int main() { int cnt = 1; while 阅读全文 »
posted @ 2021-01-14 15:00 Hoppz 阅读(64) 评论(0) 推荐(0) 编辑
摘要:A - Perfect Cubes 题目链接 还是想的hash去重出问题了2333开始用(i+k+j) * 13去重,但是忘了有多个(i+j+k)的可能,最后发现 -i * 13 + j *3 + k * 1-可以用这种去重,后面队友说可以直接线性做, --也坑了一次,最后代码如下 #include 阅读全文 »
posted @ 2021-01-14 13:56 Hoppz 阅读(98) 评论(0) 推荐(0) 编辑
摘要:今天acwing里有个题,我还是还以为是完全二叉树,结果我队内dalao一说,原来是线性dp,刚好又是计蒜客的题,那就正好补一下计蒜客的题吧。 捡水果 题目链接 #include <bits/stdc++.h> using namespace std; int a[1004][1003]; int 阅读全文 »
posted @ 2021-01-10 17:08 Hoppz 阅读(74) 评论(0) 推荐(0) 编辑
摘要:2017省赛A组 1题 题目链接 #include <bits/stdc++.h> using namespace std; /* 蓝桥杯2017A_1 算法:DFS */ void file() { #ifdef ONLINE_JUDGE #else freopen( "d:/workProgra 阅读全文 »
posted @ 2021-01-08 20:19 Hoppz 阅读(97) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示