会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
翔鸽
上一页
1
2
3
4
5
6
下一页
Codeforces Round #744 (Div. 3)
摘要: Codeforces Round #744 (Div. 3)A~E1题解
阅读全文
posted @ 2021-10-02 11:54 翔鸽
阅读(121)
评论(0)
推荐(0)
STL——rotate基本用法
摘要: STL基本用法学习————rotate 参考cppreference——rotate cplusplus——rotate 基本语法: template< class ForwardIt > ForwardIt rotate( ForwardIt first, ForwardIt n_first, F
阅读全文
posted @ 2021-09-29 19:40 翔鸽
阅读(384)
评论(0)
推荐(0)
C++Primer 第七章 类
摘要: # 第七章 类 ## 7.1.2改进和定义Sales_data类 ```c++ struct Sales_data{ std::string bookNo; unsigned units_sold = 0; double revenue = 0.0; std::string isbn() const
阅读全文
posted @ 2021-09-23 11:26 翔鸽
阅读(78)
评论(0)
推荐(0)
C++primer 第六章 函数
摘要: C++primer第六章读书笔记
阅读全文
posted @ 2021-05-31 14:24 翔鸽
阅读(124)
评论(0)
推荐(0)
C++primer 第三章 字符串、向量和数组
摘要: 第三章 字符串、向量和数组 3.1 命名空间的 using 声明 using 声明的具体形式:using namespace :: name; 有了using 声明就没必要在写单独的命名空间前缀了,可以直接写所需的名字,但是每个名字都要有单独的 using 声明。 #include <iostrea
阅读全文
posted @ 2021-05-26 10:32 翔鸽
阅读(63)
评论(0)
推荐(0)
C++primer 第二章变量和基本类型
摘要: C++primer 第二章变量和基本类型读书笔记
阅读全文
posted @ 2021-05-25 16:16 翔鸽
阅读(61)
评论(0)
推荐(0)
LeetCode554——砖墙
摘要: 554. 砖墙 - 力扣(LeetCode) (leetcode-cn.com) 大致思路:按照题目描述直接判断虚线穿过了多少道墙,需要考虑墙的边界条件等问题很难判断。但是我们可以反向思考,要让虚线穿过的砖的数目最少,等同于让虚线穿过的缝隙最多。因此我们可以求出虚线穿过的缝隙数目的最大值,再用砖块的
阅读全文
posted @ 2021-05-02 11:17 翔鸽
阅读(88)
评论(0)
推荐(0)
LeetCode第235场周赛题解
摘要: LeetCode第235场周赛题解 截断句子 按照题目要求模拟即可,把单词读入到vector中,然后按要求拼接即可 class Solution { public: string truncateSentence(string s, int k) { vector<string> a; string
阅读全文
posted @ 2021-04-04 13:37 翔鸽
阅读(69)
评论(0)
推荐(0)
LeetCode第49场双周赛题解
摘要: LeetCode第49场双周赛题解 判断国际象棋棋盘中一个格子的颜色 如果是a,c,e,g列,行数是偶数即为白格子,如果是b,d,f,h列,行数为奇数即为白格子 class Solution { public: bool squareIsWhite(string coordinates) { cha
阅读全文
posted @ 2021-04-04 09:50 翔鸽
阅读(76)
评论(0)
推荐(0)
1076 Forwards on Weibo ——PAT甲级真题
摘要: 1076 Forwards on Weibo Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as
阅读全文
posted @ 2021-02-24 18:10 翔鸽
阅读(103)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
导航
博客园
首页
联系
订阅
管理
公告