摘要: 硬空格指的是不可以去掉的空格,硬空格两端的字符一定会出现在同一行。比如:17 kg,如果17在一行的末尾,而kg出现在下一行的开头,这样看上去不利于读者的理解。这时应当在17和kg中间使用硬空格,这样17 kg就一定会出现在同一行 阅读全文
posted @ 2022-08-01 10:20 qwasdasd 阅读(159) 评论(0) 推荐(0) 编辑
摘要: em应该是指,给定的element中“m”这个字母的宽度,而ex应该是指,给定的element中“x”这个字母的高度。在所有的英文字母中,m是一个比较特殊的字母,因为它是所有字母中最宽的字母。给定的element的字体大小发生变化时,它的em和ex也就都会发生相应的变化。 阅读全文
posted @ 2022-08-01 09:54 qwasdasd 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: 错误点 测试点3、4过不了,代码写的太乱了,短时间找不出错误的地方,日后再改 代码 #include <iostream> #include <cstdio> #include <queue> #include <vector> #include <string> #include <algorit 阅读全文
posted @ 2022-07-21 14:16 qwasdasd 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 易错点 测试点1、2:注意没有匹配成功的对的时候,结果不输出 如可尝试下列数据: 10 10 10 10 10 10 20 20 20 15 15 15 15 15 15 15 20 30 20 15 15 10 10 10 2 CYLL 01:01:06:01 on-line aaa 01:04: 阅读全文
posted @ 2022-07-20 20:15 qwasdasd 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 代码 #include <iostream> #include <cstdio> #include <string> #include <cmath> using namespace std; //将一个十进制的数转化成指定进制的数 //将转化后的数颠倒 //将颠倒后的数转化回十进制的数 //判断是 阅读全文
posted @ 2022-07-20 15:46 qwasdasd 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 易错点 测试点2、4、5:如果有一个人开始服务时间在5点之前(不包括5点),结束服务时间在5点之后,那么需要服务这个人 测试点数据样例: 2 1 3 3 1 540 540 1 2 3 输出: 08:01 17:00 17:01 代码 #include <iostream> #include <cs 阅读全文
posted @ 2022-07-20 14:21 qwasdasd 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 关键 掌握深度优先搜索的代码实现(dfs),dfs可用于计算图中连通分量的个数 代码 #include <iostream> #include <cstdio> using namespace std; int g[1001][1001]; int visit[1001]; void dfs(int 阅读全文
posted @ 2022-07-20 10:49 qwasdasd 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 代码 #include <iostream> #include <cstdio> #include <string> #include <set> #include <vector> using namespace std; int r[1000000]={0}; char rc[1000000]; 阅读全文
posted @ 2022-07-19 14:57 qwasdasd 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; float a[10]; int main() { float w,t,l; for(int i=0;i<3;i++){ cin>>w>> 阅读全文
posted @ 2022-07-19 14:05 qwasdasd 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 易错点 这道题的测试点7的数据很大,因此如果硬要用顺序查找在找到之前会超时,只能用所谓的二分法才能通过这个点。 用二分查找的时候,需要注意long long也会溢出,需要设置一个特别的判断。 代码 #include <iostream> #include <cstdio> #include <iom 阅读全文
posted @ 2022-07-19 13:41 qwasdasd 阅读(70) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示