第十三届蓝桥杯C/C++ 大学B组

wlswlswls的民间数据[Link](2022蓝桥杯省赛C++ B组(民间数据) - 课程 - Daimayuan Online Judge)

A 九进制转十进制

思路

模拟

答案147814781478

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int a[N];
int g(int n) {LL x = 1;while (n --) {x *= 9;}return x;
}
int main() {ios::sync_with_stdio(false), cin.tie(0);cout << 2 * g(3) + 2 * g(1) + 2 * g(0) << '\n';return 0;
}

B 顺子日期

思路

暴力枚举判断

答案:0,1,20,1,20,1,2成立就是141414,不成立就是444

不懂

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int a[N];
int mo[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string str = "2022";bool check(string str) {for (int i = 0; i + 2 < str.size(); i ++) {bool ok = true;for (int j = i + 1; j <= i + 2; j ++) {if ((int)(str[j - 1] - '0') + 1 != (int)(str[j] - '0')) ok = false;}if (ok) return true;}return false;
}
int main() {ios::sync_with_stdio(false), cin.tie(0);int res = 0;for (int i = 1; i <= 12; i ++) {string m = to_string(i), d;if (m.size() < 2) m = "0" + m;for (int j = 1; j <= mo[i]; j ++) {d = to_string(j);if (d.size() < 2) d = "0" + d;string t = str + m + d;if (check(t)) {res ++;                }}} cout << res << '\n';return 0;
}

C 刷题统计

思路

循环节

a,b,na,b,na,b,n太大所以模拟行不通,七天一个循环节,所以n=(a×5+b×2)×k+rn=(a\times 5+b\times 2)\times k + rn=(a×5+b×2)×k+r,所以看nnn有几个循环节,最后再单独算一下rrr的贡献即可。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
LL a, b, n;
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> a >> b >> n;LL d = (5 * a + 2 * b);LL res = n / d * 7;n %= d;for (int i = 1; i <= 7; i ++) {if (n <= 0) break;if (i < 6) n -= a;else n -= b;res ++;}cout << res;return 0;
}

D 修剪灌木

思路

贪心

​ 对于每一个位置,最优解应该是把它砍掉以后往左走或往右走再回来的最大值,因为如果有一个位置ttt开始走到当前位置是最优解,我从当前位置到ttt会多出一截,所以从当前位置走是最优的。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int a, b, n;
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> n;for (int i = 1; i <= n; i ++) {int d = max(i, n - i + 1);cout << d + max(0, d - 2);if (i != n) cout << '\n';}return 0;
}

E x进制

思路

贪心

这里有个很重要前提A≥BA\ge BA≥B,假设第iii为的进制是tit_iti​,pi=(t1×t2×...×ti−1)p_i=(t_1\times t_2\times ...\times t_{i-1})pi​=(t1​×t2​×...×ti−1​),我们的答案就是∑i=1n(Ai−Bi)×pi\sum_{i=1}^n (A_i-B_i)\times p_i∑i=1n​(Ai​−Bi​)×pi​,由于我们题目保证A≥BA\ge BA≥B,如果A≠BA\ne BA​=B那么从高位到低位一定有某一位是Ai>BiA_i > B_iAi​>Bi​的,进制合法所以不进位,因此高位具有决定性,所以我们只需要让所有位的进制都取最小合法的即可,即max(2,min(Ai,Bi)+1)max(2,min(A_i,B_i) + 1)max(2,min(Ai​,Bi​)+1),单独每一位即可。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int la, lb;
LL a[N], b[N], c[N], p[N];
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> n;cin >> la;for (int i = 1; i <= la; i ++)cin >> c[i];for (int i = 1; i <= la; i ++)a[i] = c[la - i + 1];cin >> lb;for (int i = 1; i <= lb; i ++)cin >> c[i];for (int i = 1; i <= lb; i ++)b[i] = c[lb - i + 1];for (int i = 1; i <= max(la, lb); i ++) p[i] = max(max(a[i], b[i]) + 1, 2ll);LL res = 0;LL pre = 1;for (int i = 1; i <= max(la, lb); i ++) {LL d = (a[i] - b[i]) * pre % mod;res = (res + d) % mod;pre = pre * p[i] % mod;}cout << (res % mod + mod) % mod;return 0;
}

F 统计子矩阵

思路

前缀和+双指针

​ 首先很容易想到枚举正方形的两个对角点,然后二维前缀和把查区间值降到O(1)O(1)O(1),枚举复杂度为O(n4)O(n^4)O(n4),骗点分。

​ 换一个方式来枚举,首先枚举上边和下边的位置,然后在这个子矩形里从左到右的算贡献,因为固定了上下边界,所以每一列相当于一个数(求和以后),就转化为在一个一维数组里有多少个连续的区间满足区间和≤k\le k≤k

​ 计数类问题先划分,我们可以以区间右端点在那来划分这些区间,对于一个区间[l,r][l,r][l,r](以rrr为右端点成立的最长的区间)当右端点右移的时候区间和会变大,它的左端点不会从111开始只会从上个区间lll往右移动,因此具有单调性我们可以双指针O(n)O(n)O(n)的维护,对于一个成立的最大区间[l,r][l,r][l,r]的贡献为r−l+1r-l+1r−l+1(从右端点往左扩有这些区间)。

​ 复杂度O(n3)O(n^3)O(n3)

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 510, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int s[N][N];
int main() {scanf("%d %d %d", &n, &m, &k);for (int i = 1; i <= n; i ++)for (int j = 1; j <= m; j ++) {scanf("%d", &s[i][j]);s[i][j] += s[i - 1][j];}LL res = 0;for (int l = 1; l <= n; l ++)for (int r = l; r <= n; r ++) {int sum = 0;for (int i = 1, j = 1; i <= m; i ++) {sum += s[r][i] - s[l - 1][i];while (sum > k) {sum -= s[r][j] - s[l - 1][j];j ++;}                               res += i - j + 1;}}printf("%lld\n", res);return 0;
}

G 积木画

思路

状压dp

考虑f[i][j]:当前摆到第i列且占了i+1列j个格子的情况f[i][j]:当前摆到第i列且占了i+1列j个格子的情况f[i][j]:当前摆到第i列且占了i+1列j个格子的情况

f[i][0]=f[i−1][0]+f[i−1][2]f[i][0]=f[i-1][0]+f[i-1][2]f[i][0]=f[i−1][0]+f[i−1][2]

f[i][1]=f[i−1][0]×2+f[i−1][1]f[i][1]=f[i-1][0]\times2+f[i-1][1]f[i][1]=f[i−1][0]×2+f[i−1][1]

f[i][2]=f[i−1][0]+f[i−1][1]f[i][2]=f[i-1][0]+f[i-1][1]f[i][2]=f[i−1][0]+f[i−1][1]

为了不重复计算,初始我们让f[1][2]=1f[1][2]=1f[1][2]=1表示上下摆放两个长条,并规定f[i][2]f[i][2]f[i][2]中由长条组成的情况只有上下摆放的情况,这里不算左右摆放长条是因为f[i][0]f[i][0]f[i][0]由f[i−1][0],f[i−1][2]f[i-1][0],f[i-1][2]f[i−1][0],f[i−1][2]转移过来从f[i−1][0]f[i-1][0]f[i−1][0]转移过了的情况存在最后并着两个长条的情况,因此不能再f[i−1][2]f[i-1][2]f[i−1][2]中计数。

由于只用前一维状态,可以滚动数组优化空间。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e7 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1000000007;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int a[N];
LL f[2][3];
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> n;f[1][0] = 1, f[1][1] = 2, f[1][2] = 1;for (int i = 2; i <= n; i ++) {f[i&1][0] = (f[i-1&1][0] + f[i-1&1][2]) % mod;f[i&1][1] = (f[i-1&1][0] * 2 + f[i-1&1][1]) % mod;f[i&1][2] = (f[i-1&1][0] + f[i-1&1][1]) % mod;}cout << f[n&1][0] << '\n';return 0;
}

线性dp

我的做法比较麻烦(不会状压dp的锅),考虑f[i][j]:当前摆到第i列且往第i+1列延申的状态f[i][j]:当前摆到第i列且往第i+1列延申的状态f[i][j]:当前摆到第i列且往第i+1列延申的状态

然后从前往后转移即可,一开始图省事开的longlonglonglonglonglong把空间炸了,寄,建议学滚动数组。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e7 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1000000007;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int a[N];
int f[N][4];
int main() {ios::sync_with_stdio(false), cin.tie(0);f[0][0] = 1;cin >> n;for (int i = 1; i <= n; i ++) {f[i][3] = ((LL)f[i - 1][0] + f[i][3]) % mod;f[i][0] = ((LL)f[i][0] + f[i - 1][0]) % mod;if (i >= 1)f[i][0] = ((LL)f[i][0] + f[i - 1][3]) % mod;f[i][1] = ((LL)f[i][1] + f[i - 1][0]) % mod;f[i][2] = ((LL)f[i][2] + f[i - 1][0]) % mod;f[i][1] = ((LL)f[i][1] + f[i - 1][2]) % mod;f[i][2] = ((LL)f[i][2] + f[i - 1][1]) % mod;f[i + 1][0] = ((LL)f[i + 1][0] + f[i - 1][1] + f[i - 1][2]) % mod;}   cout << (f[n][0] % mod + mod) % mod;return 0;
}

H 扫雷

思路

枚举,搜索

​ 比赛的时候读错题了,以为炮弹一发一发发射且求每一发最多炸多少,mdmdmd寄。

​ 暴力的想法我们可以把搞一个数组判断这个雷炸没炸,每个炮弹暴力的判断是否让一些雷炸掉然后再从这个没有炸过的雷向外dfsdfsdfs算贡献即可,瓶颈在于枚举所有的雷上,观察发现1≤r≤101\le r\le 101≤r≤10,因为我们只需要枚举当前雷的半径内是否存在雷即可,即判断范围内的点x,yx,yx,y是否为某个雷的圆心即可。

​ 由于卡常,我们用unordered_mapunordered\_mapunordered_map来映射当前这个雷是否出现过,对于圆形相同的雷我们只需要记录它的最长半径和数量即可,然后暴力枚举范围内的点是否为雷是否可以继续往下搜即可。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 5e4 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int n, m, k;
struct Node {int x, y, r, cnt;
}a[N];
bool st[N];
int idx, res;
unordered_map<LL, int> mp;
LL dist(int x1, int y1, int x2, int y2) {return (LL)(x1 - x2) * (x1 - x2) + (LL)(y1 - y2) * (y1 - y2);
}
LL calc(int x, int y) {return (LL)x * (1e9 + 1) + y;
}
void dfs(int u) {res += a[u].cnt;st[u] = true;for (int x = a[u].x - a[u].r; x <= a[u].x + a[u].r; x ++) {for (int y = a[u].y; dist(x, y, a[u].x, a[u].y) <= (LL)a[u].r * a[u].r; y ++) {            if (x >= 0 && x <= 1e9 && y <= 1e9) {if (mp.find(calc(x, y)) != mp.end()) {int id = mp[calc(x, y)];if (!st[id])    dfs(id);}}}for (int y = a[u].y; dist(x, y, a[u].x, a[u].y) <= (LL)a[u].r * a[u].r; y --) {            if (x >= 0 && x <= 1e9 && y <= 1e9) {if (mp.find(calc(x, y)) != mp.end()) {int id = mp[calc(x, y)];if (!st[id])    dfs(id);}}}}
}
int main() {scanf("%d %d", &n, &m);for (int i = 1; i <= n; i ++) {int x, y, r;scanf("%d %d %d", &x, &y, &r);        if (mp.find(calc(x, y)) == mp.end())mp[calc(x, y)] = ++idx, a[idx] = {x, y, r, 1};else {int id = mp[calc(x, y)];a[id].r = max(a[id].r, r);a[id].cnt ++;}}for (int i = 1; i <= m; i ++) {scanf("%d %d %d", &a[idx + 1].x, &a[idx + 1].y, &a[idx + 1].r);  dfs(idx + 1);        }printf("%d\n", res);return 0;
}

I 李白打酒加强版

思路

dpdpdp

​ 考场上没动脑子,直接上了个二进制枚举暴力骗了点分。

​ 由于m≤100m\le 100m≤100且mmm每次只能减111所以我们身上的酒不能超过当前的mmm否则就喝不完了,考虑f[i][j][k]:当前路过i个店,j个花且酒还剩k的方案数f[i][j][k]:当前路过i个店,j个花且酒还剩k的方案数f[i][j][k]:当前路过i个店,j个花且酒还剩k的方案数。我们直接枚举方案数往后一个可以转移的状态转移即可,注意一下转移是否合法即可,不合法的情况有1.当前这个是店且k×2>m2.当前这个是花且k==03.当前这个是店但是j==m1.当前这个是店且k\times 2>m\ \ 2.当前这个是花且k==0\ \ 3.当前这个是店但是j==m1.当前这个是店且k×2>m  2.当前这个是花且k==0  3.当前这个是店但是j==m。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 1e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
int a[N];
int f[110][110][101];
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> n >> m;f[0][0][2] = 1;for (int i = 0; i <= n; i ++)for (int j = 0; j <= m; j ++) for (int k = 0; k <= m; k ++) {if (k * 2 <= m && j != m) (f[i + 1][j][k * 2] += f[i][j][k]) %= mod;if (k)(f[i][j + 1][k - 1] += f[i][j][k]) %= mod;}cout << f[n][m][0] << '\n';return 0;
}

J 砍竹子

思路

贪心

​ 它的这个开根的操作最多6,76,76,7次就会把一个数开到111,贪心的来看我们一定是让一些一样的尽量高一起被砍更优。对于每个竹子单独砍会有从它到111的一些过程值,无非是砍到和它前一个的公共最长前缀一样还是和它后一个的公共最长前缀一样然后再一起砍掉,这个时候我就很蠢的写了区间dpdpdp骗了点分就runrunrun了。

​ 继续往下贪心,对于当前位置:

​ 如果和左边公共前缀更长,那么它就会砍一些变成左边的这个前缀

​ 如果右边更长,我们其实是要变成右边的前缀然后然后再一起变成左边这个前缀,我们把这两步的贡献都计入当前砍成左边前缀

​ 因此每一个点看看砍成左边最长前缀需要几步就可以了,特殊的第一个点它的前面是111。

​ 找前缀可以预处理然后暴力判断,我这里直接那个mapmapmap搞的,复杂度高一些,也可以接受。

Code

#include <bits/stdc++.h>
#define x first
#define y second
#define debug(x) cout<<#x<<":"<<x<<endl;
using namespace std;
typedef long double ld;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef unsigned long long ULL;
const int N = 2e5 + 10, M = 2 * N, INF = 0x3f3f3f3f, mod = 1e9 + 7;
const double eps = 1e-8, pi = acos(-1), inf = 1e20;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int h[N], e[M], ne[M], w[M], idx;
void add(int a, int b, int v = 0) {e[idx] = b, w[idx] = v, ne[idx] = h[a], h[a] = idx ++;
}
int n, m, k;
LL g(LL x) {return sqrt(x / 2 + 1);
}
int dist(LL x, LL y) {map<LL, bool> mp;while (y > 1) {mp[y] = true;y = g(y);}    int res = 0;while (x > 1) {if (mp[x]) {break;}res ++;x = g(x);}return res;
}
LL res;
int main() {ios::sync_with_stdio(false), cin.tie(0);cin >> n;LL pre = 1, res = 0;    for (int i = 1; i <= n; i ++) {LL x; cin >> x;res += dist(x, pre);pre = x;}cout << res << '\n';return 0;
}

第十三届蓝桥杯C/C++ 大学B组题解相关推荐

  1. 第十三届蓝桥杯省赛C++B组题解

    写在前面 · 本篇题解对应的是第十三届蓝桥杯省赛C++组的B组的第一场 · 所使用的语言时Python3(其实主要看思路.是什么语言不重要

  2. 第十三届蓝桥杯省赛 python B组复盘(三道代码题全AC居然省一了)

    第十三届蓝桥杯省赛 python B组复盘(三道代码题全AC居然省一了)

  3. 第十三届 蓝桥杯青少年创意编程 C++组 省赛

    第十三届蓝桥杯省赛(2022年4月17日)C++中级组题解 第十三届蓝桥杯省赛(2022年4月17日)C++中级组题解_金博欣的博客-CSDN博客 第十三届蓝桥杯青少组省赛C++中级组(0417)讲解 ...

  4. 第十三届蓝桥杯省赛python(B组)赛后总结

    前言:这次蓝桥杯比赛,我获得了python组的二等奖(下图中最后一行是我,差几名拿省一).其实能获得这个成绩也算意料之外,情理之中吧.赛前也挺迷茫,自己到底能不能获奖,已经大三下了,还要准备考教资,找 ...

  5. 2022年第十三届蓝桥杯省赛C++B组

    A.九进制转十进制 [问题描述] 九进制正整数(2022)₉转换成十进制等于多少? [思路] 2 * 9^3 + 0 * 9^2 + 2 * 9^1 + 2 * 9^0=1478 #include&l ...

  6. 第十三届蓝桥杯省赛 python B组复盘

    文章目录 前言 主要内容

  7. 第十三届蓝桥杯省赛 JAVA A组 - 蜂巢

    ✍个人博客:https://blog.csdn.net/Newin2020?spm=1011.2415.3001.5343

  8. 【蓝桥杯单片机】第十三届蓝桥杯单片机省赛客观题及其题解

        本次的客观题小编觉得还是比较简单的,涉及到单片机组成结构知识的题目直接在官方给的参看文档里面,仔细的找一找就能够找到了. 题目及解析     通过查找芯片手册小编得知IAP15F2K61S2单 ...

  9. 2018第九届蓝桥杯-决赛-Java大学-C组

    标题:年龄问题 s夫人一向很神秘.这会儿有人问起她的年龄,她想了想说: "20年前,我丈夫的年龄刚好是我的2倍,而现在他的年龄刚好是我的1.5倍". 你能算出s夫人现在的年龄吗? ...

  10. 2022 第十三届 蓝桥杯 省赛 Java B组 真题 详细解析 答案

    文章目录 试题 A: 星期计算 [问题描述] [答案] 试题 B: 山 [问题描述] [答案] 试题 C: 字符统计 [问题描述] [答案] 试题 D: 最少刷题数 [问题描述] [答案] 试题 E: ...

最新文章

  1. RHCE课程-RH253Linux服务器架设笔记五-APACHE服务器配置(4)
  2. 【转】C#对象的深拷贝与浅拷贝
  3. 【校招面试 之 C/C++】第15题 C 回调函数
  4. Windows phone 8 学习笔记(5) 图块与通知
  5. 两个Double相加,小数点有很多位问题
  6. cmake / aux_source_directory
  7. 极速理解设计模式系列:4.原型模式(Prototype Pattern)
  8. 一打开就致命错误_AutoCAD致命错误:Unhandled Delayloadquot;D3DCOMPILER_47.dll
  9. http请求POST和GET调用接口以及反射动态调用Webservices类
  10. 【产品必备软件合集】
  11. 微信小程序反编译获取源码
  12. 类型 异常报告 消息 null 描述 服务器遇到一个意外的情况,阻止它完成请求。 例外情况 java.lang.NumberFormatException: null java.base/
  13. 用Python制作翻译工具
  14. 锐捷防火墙RG-WALL 1600常用命令
  15. 常用linux指令集
  16. delphi XE https接口 出错 Could not load SSL library
  17. Day 2---vue2 从0开始 写一个前端框架
  18. 时序预测 | MATLAB实现GWO-LSTM灰狼算法优化长短期记忆神经网络时间序列预测
  19. KNN算法--手写识别
  20. 让PyQt5更加美观

热门文章

  1. 2D激光雷达运动畸变矫正_base里程计
  2. 服务器vga转hdmi显示器不亮,手把手教你排除HDMI转VGA常见故障
  3. MODLE CODE
  4. PNP型三极管是不是要发射极接正电压,基极和集电极接地才能工作?能给张图不?
  5. java mvc外文文献_java spring英文文献和中文翻译
  6. 无Internet访问权限-已解决
  7. 2018计算机专硕学硕,2018年考研要弄清学硕与专硕的区别
  8. “松鼠症”患者看过来 整理电子相册的秘笈都在这了
  9. 带云的计算机词语,带云字的词语和成语有哪些
  10. 输入一个字符串,输出该字符串中字符的所有组合。(腾讯2014笔试附加题)