chaomaer
码龄8年
关注
提问 私信
  • 博客:52,632
    52,632
    总访问量
  • 110
    原创
  • 1,252,365
    排名
  • 6
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2016-10-18
博客简介:

chaomaer的博客

查看详细资料
个人成就
  • 获得19次点赞
  • 内容获得4次评论
  • 获得31次收藏
创作历程
  • 1篇
    2019年
  • 80篇
    2018年
  • 29篇
    2017年
成就勋章
TA的专栏
  • dynamic programming
  • ccf csp
    10篇
  • poj
    9篇
创作活动更多

AI大模型如何赋能电商行业,引领变革?

如何使用AI技术实现购物推荐、会员分类、商品定价等方面的创新应用?如何运用AI技术提高电商平台的销售效率和用户体验呢?欢迎分享您的看法

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

Useful Ubuntu Tips

Emacsmake the caps lock to ctrl : setxkbmap -layout us -option ctrl:nocaps
原创
发布博客 2019.03.02 ·
179 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ 1472

自己对于这道题目的理解 主要参考的代码链接 传送门BEGIN LOOP n OP 4 LOOP 3 LOOP n OP 1 END OP 2 END OP 1 END OP 17 OP 17 LOOP n OP 4 LOOP 3 LOOP n ...
原创
发布博客 2018.09.06 ·
224 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

c++中vector的拷贝构造过程

c++ 中std::vector的拷贝构造过程 文章来自阿里校招的一道面试题目,向vector中push n个对象,问对象的构造函数,拷贝构造函数,析构函数分别调用了几次?vector中的内存分配策略vector的底层是用动态数组来存储的,当我们用vector<T> vect 这样的形式声明的时候,数组的长度是0,当我们插入第一个元素的时候,数组的长度会变为1,当插...
原创
发布博客 2018.08.21 ·
4501 阅读 ·
7 点赞 ·
0 评论 ·
10 收藏

POJ 2479

很好的思路,同时从前面和后面计算最大的连续序列和,然后遍历中间点,得出最大值。#include<stdio.h>#include<iostream>#include<algorithm>#include<functional>#include<vector>#include<string.h>using nam...
原创
发布博客 2018.07.06 ·
234 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ 4044

#include<stdio.h>#include<iostream>#include<algorithm>#include<functional>#include<vector>#include<string.h>using namespace std;vector<int> vect1;vect
原创
发布博客 2018.07.06 ·
301 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CPP 字符串工具类

c++字符串常用操作字符串转化为整形int string_to_int(string s){ return atoi(s.c_str());}整形转化为字符串string tostring(int a){ stringstream ss; ss<<a; return ss.str();}字符转化为字符串st...
原创
发布博客 2018.06.29 ·
385 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

POJ 1094

Thinking in topological sorthow to judge if has a loopwhen there are still some unvisited node, but the number of node whose in-degree==0 equals zero, we can say: there is a loop in the graph.ho...
原创
发布博客 2018.05.27 ·
181 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ 3026

#include <iostream>#include <algorithm>#include <vector>#include <map>#include <string>#include <queue>#include <cstring>#include <cstdio&gt
原创
发布博客 2018.05.27 ·
352 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

scanf 返回值的总结

返回值代表的是正确匹配的参数个数如果只读到一个EOF,则返回值为EOFint a;while(scanf("%d", &a)==EOF)break;int a;while(~scanf("%d", &a))都可以代表如果数据读取完成,跳出循环。...
原创
发布博客 2018.05.26 ·
9286 阅读 ·
4 点赞 ·
0 评论 ·
15 收藏

CCF CSP 游戏

这道题目让我更加理解BFS对于求最短路径的重要性,如果需要多次访问一个节点,可以在再添加一个维度。#include <iostream>#include <algorithm>#include <vector>#include <map>#include <string>#in
原创
发布博客 2018.05.23 ·
537 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CCF CSP 地铁修建

#include <iostream>#include <algorithm>#include <vector>#include <map>#include <string>#include <queue>#include <cstring>using namespace std;const in
原创
发布博客 2018.05.22 ·
204 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CCF CSP 通信网络

传递闭包问题(a->b&&b->c)--->(a->c)floyd这样做是超时的。#include <iostream>#include <math.h>#include <string.h>#include &
原创
发布博客 2018.05.21 ·
550 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CCF CSP 交通规划

吐槽: CCF绝对是最垃圾的OJ,没有之一,我内存超了,从错误类型中没看出来…..为了防止内存超了,利用临接链表为了防止时间超了,利用优先队列,其他的比较简答了。#include <iostream>#include <math.h>#include <string.h>#include <stdio.h>#includ...
原创
发布博客 2018.05.21 ·
440 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Floyd算法的一点思考

Floyd算法是解决任意两点最短路径的经典DP算法。状态方程假设i~ji~ji\text{~}j的最短路径经过中间结点kkk,则δ(i,j)=δ(i,k)+δ(k,j)δ(i,j)=δ(i,k)+δ(k,j)\delta(i,j)=\delta(i, k)+\delta(k, j) 我们令算法的状态转移方程为 f(k,i,j)=min(f(k−1,i,j),f(k−1,i,...
原创
发布博客 2018.05.19 ·
309 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CCF CSP 行车路线

#include <iostream>#include <stdio.h>#include <string.h>#include <queue>using namespace std;typedef long long int LL;const LL MAXSIZE = 502;const LL INF = 0x3f3
原创
发布博客 2018.05.18 ·
1055 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

CCF CSP URL映射

#include <iostream>#include <string>#include <stdlib.h>#include <cstdio>#include <map>#include <vector>using namespace std;map<string, string> dict;ve
原创
发布博客 2018.05.05 ·
1364 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

POJ 1472

#include <iostream>#include <cstdio>#include <string>#include <sstream>#include <cstring>using names
原创
发布博客 2018.05.02 ·
245 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ 2965

自己简答的实现了一个队列 * 当push操作的时候,tail++ * 当pop操作的时候,head++暂时没有考虑队列满和空的情况#include <iostream>#include <string.h>using namespace std;int visit[1<<16];int pre[1<<16];int Q[1&...
原创
发布博客 2018.04.30 ·
226 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ 1753

#include <iostream>#include <queue>using namespace std;int visit[1<<16+10];queue<int > Q;int getnext(int temp, int x, int y){ temp ^= 1<<(4*x+y); if (x-1&gt...
原创
发布博客 2018.04.30 ·
226 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Float Vs Double

visual IEEEmake use of the property of union keyword#include <stdio.h>union FloatingPointIEEE754 { struct { unsigned int mantissa : 23; unsigned int exponent : 8; ...
原创
发布博客 2018.04.29 ·
109 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多