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