linhy_Asa
linhy_Asa
全部文章
分类
题解(25)
归档
标签
去牛客网
登录
/
注册
linhy_Asa的博客
全部文章
(共5篇)
题解 | #矩阵乘法计算量估算#
一方面考察矩阵乘法次数的计算,另一方面考察利用栈来解决运算优先级的问题。 #include <bits/stdc++.h> using namespace std; int main() { &n...
C++
栈
数学
2022-09-09
0
315
题解 | #矩阵乘法#
模拟矩阵乘法的实现,难度中下吧 #include <bits/stdc++.h> using namespace std; int main(){ int x = ...
C++
数组
数学
2022-09-08
1
280
题解 | #查找组成一个偶数最接近的两个素数#
没有啥难度,关键在于判断素数。 #include <cmath> #include <iostream> #include <limits.h> using namespace std; // 判断...
数学
C++
2022-08-12
0
252
题解 | #高精度整数加法#
大数求和,利用整型数组来实现,利用倒序,再注意进位的处理。 #include <iostream> #include <string> #include <algorithm> using namespace ...
C++
数学
2022-08-09
0
267
题解 | #杨辉三角的变形#
自己写的时候,利用deque<int>按照模拟的思路去做,结果超时了。看了解析,原来是找规律的问题。 #include <iostream> #include <deque> using namespace std; ...
C++
数学
2022-08-08
0
194