摘要: 出处:https://acs.jxnu.edu.cn/contest/24/board/challenge/B Fun with Even Subarrays 描述: You are given an array aa of nn elements. You can apply the follow 阅读全文
posted @ 2022-02-12 23:15 次林梦叶 阅读(94) 评论(0) 推荐(0)
摘要: 7-17 根据后序和中序遍历输出先序遍历 (25 分) #include<bits/stdc++.h> using namespace std; int prearray[35],midarray[35],postarray[35]; void solvefunc(int pre,int mid,i 阅读全文
posted @ 2022-02-12 22:03 次林梦叶 阅读(73) 评论(0) 推荐(0)
摘要: 一个大佬的博客:https://blog.csdn.net/no_O_ac/article/details/82155804 大佬这种方法很巧妙: 这种方法的原理是:一个数(num>=2)必定可以写成只由质数相乘的形式 cin >> x; vector<int> a; for(int j = 2; 阅读全文
posted @ 2022-02-12 09:46 次林梦叶 阅读(77) 评论(0) 推荐(0)