「已注销」
码龄4年
关注
提问 私信
  • 博客:87,488
    动态:3
    87,491
    总访问量
  • 186
    原创
  • 暂无
    排名
  • 46
    粉丝
  • 0
    铁粉

个人简介:此人很勤奋,但还是什么都没写。

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:台湾省
  • 加入CSDN时间: 2020-10-30
博客简介:

金色传说的特级博客

博客描述:
一个好的博客一般不需要太多描述。
查看详细资料
个人成就
  • 获得295次点赞
  • 内容获得36次评论
  • 获得168次收藏
  • 代码片获得1,870次分享
创作历程
  • 4篇
    2022年
  • 182篇
    2021年
成就勋章
TA的专栏
  • 程序设计代码共享
    183篇
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

洛谷B2005 字符三角形高级解法

【代码】洛谷B2005 字符三角形高级解法。
原创
发布博客 2022.10.26 ·
494 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

洛谷B2025 输出字符菱形高级解法

【代码】洛谷B2025 输出字符菱形高级解法。
原创
发布博客 2022.10.26 ·
477 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

洛谷B2002 Hello,World!高级解法

【代码】洛谷B2002 Hello,World!高级解法。
原创
发布博客 2022.10.26 ·
491 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

洛谷P1525 [NOIP2010 提高组] 关押罪犯进阶解法

【代码】洛谷P1525 [NOIP2010 提高组] 关押罪犯进阶解法。
原创
发布博客 2022.10.26 ·
206 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P1540 [NOIP2010 提高组] 机器翻译(队列)

#include<iostream>using namespace std;int m[1001], first, last, M, N, num;int main() { cin >> M >> N; for (int i = 0; i < N; i++) { int w, j; cin >> w; for (j = first; j < last && m[j] != w; j++) {} if
原创
发布博客 2021.09.12 ·
446 阅读 ·
2 点赞 ·
0 评论 ·
1 收藏

洛谷P1160 队列安排(双向队列)

#include<iostream>using namespace std;constexpr int MAXSIZE(100000);struct Deque { int left, right; bool isDeleted;}deque[MAXSIZE + 1];int main() { deque[0].right = 1; deque[1].left = 0; int N; cin >> N; for (int i = 2; i <= N
原创
发布博客 2021.09.12 ·
254 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P1996 约瑟夫问题进阶解法

#include<iostream>constexpr int MAXSIZE(100);using namespace std;int a[MAXSIZE + 1], n, m;int main() { cin >> n >> m; for (int i = 0; i < n; i++) a[i] = i + 1; a[n] = 1; for (int i = 1, cur = 0; i <= n; i++) { for (i
原创
发布博客 2021.09.11 ·
178 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P1449 后缀表达式进阶解法

#include<iostream>#include<stack>#include<string>using namespace std;stack <int> expr;string temp;char ch;int first, second;int main(){ for (;;) { cin >> ch; switch (ch) { case('.'): expr.push(stoi(tem
原创
发布博客 2021.08.24 ·
115 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P3613 【深基15.例2】寄包柜进阶解法

#include<iostream>#include<vector>constexpr int MAX = 10e5 + 1;int n, q;using namespace std;struct Chest{ vector<int>box, item; int num;}chest[MAX];int main(){ cin >> n >> q; for (int i = 0; i < q; i++) {
原创
发布博客 2021.08.24 ·
191 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P4995 跳跳!进阶解法

#include<iostream>#include<algorithm>using namespace std;constexpr int MAX_LENGTH = 300;int n, h[MAX_LENGTH], g[MAX_LENGTH + 10];long long sum;int main(){ cin >> n; for (int i = 0; i < n; i++) cin >> h[i]; sort(h, h
原创
发布博客 2021.07.18 ·
172 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P1208 [USACO1.3]混合牛奶 Mixing Milk进阶解法

#include<iostream>#include<algorithm>using namespace std;int const MAX_LENGTH = 5000;int n, m, sum;struct SFarmer{ int p, a;}farmer[MAX_LENGTH];bool compare(const SFarmer& first,const SFarmer& second){ return first.p < s
原创
发布博客 2021.07.18 ·
253 阅读 ·
2 点赞 ·
1 评论 ·
1 收藏

洛谷P5019 [NOIP2018 提高组] 铺设道路进阶解法

#include<iostream>using namespace std;int const MAX_LENGTH = 100001;int n, d[MAX_LENGTH];long long sum;int main(){ cin >> n; for (int i = 0; i < n; i++) cin >> d[i]; for (int i = 0; i < n - 1; i++) if (d[i] > d[i +
原创
发布博客 2021.07.11 ·
130 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P1106 删数问题进阶解法

#include<iostream>#include<string>using namespace std;int k;string s;int main(){ cin >> s >> k; for (int i = 0; i < k; i++) { int l = s.length(); for (int j = 0; j < l - 1; j++) if (s[j] > s[j + 1]) {
原创
发布博客 2021.07.10 ·
207 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P1219 [USACO1.5]八皇后 Checker Challenge进阶解法

#include<iostream>#include<algorithm>using namespace std;int n, number;bool square[14][14];bool isOK[14][14];void dfs(int depth = 1){ if (n + 1 == depth) { number++; if (number <= 3) { for (int i = 1; i <= n; i++)
原创
发布博客 2021.07.09 ·
224 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P2240 【深基12.例1】部分背包问题进阶解法

#include<iostream>#include<algorithm>#include<iomanip>using namespace std;struct SCoin{ int m, v;}coin[101];int N, T, t;double V;bool myCompare(const SCoin& first, const SCoin& second){ return first.v * second.m >
原创
发布博客 2021.07.05 ·
163 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

洛谷P1228 地毯填补问题进阶解法

#include<iostream>#include<cmath>using namespace std;int k, x, y;void cover1(int k, int d, int m, int n){ int N = pow(2, k); if (k == 0) { cout << m + 1 << ' ' << n + 1 << ' '; switch (d) { case(1):cout
原创
发布博客 2021.06.19 ·
153 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P1259 黑白棋子的移动进阶解法

#include<iostream>using namespace std;int N;int main(){ cin >> N; for (int i = N; i > 3; i--) { for (int j = 0; j < i; j++) cout << 'o'; for (int j = 0; j < i; j++) cout << '*'; cout << "--"; fo
原创
发布博客 2021.06.18 ·
204 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P1990 覆盖墙壁进阶解法

#include<iostream>using namespace std;int a[1000001], b[1000001], N;int main(){ cin >> N; a[1] = 1; b[1] = 1; a[2] = 2; b[2] = 2; for (int i = 3; i <= N; i++) { a[i] = (a[i - 1] + 2 * b[i - 2] + a[i - 2]) % 10000; b[i] = (a[
原创
发布博客 2021.06.18 ·
237 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P1164 小A点菜进阶解法

#include<iostream>using namespace std;int N, M, a[1000], b[1000][10000];int main(){ cin >> N >> M; for (int i = 1; i <= N; i++) cin >> a[i]; b[0][0] = 1; for (int i = 1; i <= N; i++) for (int j = 0; j <= M; j+
原创
发布博客 2021.06.17 ·
120 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

洛谷P2437 蜜蜂路线进阶解法

#include<iostream>#include<string>using namespace std;int M, N;string first = "0", second = "1", third = "";void factorial(){ int temp; for (int i = 0; i < N; i++) { temp = 0; third.clear(); for (int j = 0; j < first.leng
原创
发布博客 2021.06.16 ·
175 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏
加载更多