上一页 1 ··· 3 4 5 6 7
  2024年7月23日
摘要: 基础算法复习 (上午) 双指针 一本书P页,第i页有知识点ai,同一个知识点可能多次提到,希望通过连续的一些页把所有知识点都覆盖到。求出连续的最少页数 #include <iostream> #include <algorithm> #include <cmath> #include <set> # 阅读全文
posted @ 2024-07-23 20:46 Hoshino1 阅读(8) 评论(0) 推荐(0)
摘要: 1.回看7.18-7.20总结 map和pair- #include <iostream> #include <vector> using namespace std; const int maxn = 10; vector<pair<int, int>> q[maxn]; int main() { 阅读全文
posted @ 2024-07-23 08:35 Hoshino1 阅读(22) 评论(0) 推荐(0)
  2024年7月20日
摘要: 上午 vjcon3补题 vj3 优先队列维护贪心 取一个数的各位只需要 a/100%10,a/10%10,a%10; 去重 bool(int n) { set<int>st; for(int j=0;j<n;j++) { st.insert(a[i][j]); } if(st.size()!=n) 阅读全文
posted @ 2024-07-20 16:29 Hoshino1 阅读(14) 评论(0) 推荐(0)
摘要: 上午:contest2补题; 下午:vj比赛 晚上:acwing数学约数+最短路问题。 约数个数 const int mod=1e9+7,998244353 for(int i=2; i<=x; i++) { while(x%i==0) { x/=i; primes[i]++; } if(x>1) 阅读全文
posted @ 2024-07-20 08:03 Hoshino1 阅读(13) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7