算法小白-0xa5
算法小白-0xa5
全部文章
分类
算法(1)
题解(18)
归档
标签
去牛客网
登录
/
注册
来份工作吧
全部文章
(共15篇)
题解 | #蛇形矩阵#
#include <iostream> using namespace std; // 每行的数字之间的差值是一个等差数列 // 每列数字之间的差值是一个等差数列 int main() { int len; while(cin >> len) { ...
2021-08-20
1
395
题解 | #简单错误记录#
#include <iostream> #include <queue> #include <map> using namespace std; struct Info { string name; string linenum; in...
2021-08-18
0
309
题解 | #购物单#
以主键为物品,附件作为主件的不同开销和价值选项,按照01背包的算法解决该问题。 #include <iostream> #include <map> using namespace std; struct Good { int price; int imp...
2021-08-18
0
446
题解 | #质数因子#
#include <iostream> #include <cmath> using namespace std; int main() { long num; long sq; cin >> num; sq = sqrt(n...
2021-08-17
1
406
题解 | #字符串分隔#
#include <iostream> using namespace std; int main() { string word; int index; while(cin >> word) { index = 0; ...
2021-08-17
0
278
首页
上一页
1
2
下一页
末页