03 2020 档案

摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 According to Wikipedia: Insertion sort iterates, consuming one input element eac 阅读全文
posted @ 2020-03-31 17:53 黄鹏宇 阅读(294) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Shopping in Mars is quite a different experience. The Mars people pay by chained 阅读全文
posted @ 2020-03-31 11:13 黄鹏宇 阅读(241) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 下面贴一下这篇博客的参考地址 https://www.cnblogs.com/mydomain/p/9984482.html ① 大小写转换的问题 ①-①char类型 可 阅读全文
posted @ 2020-03-31 09:26 黄鹏宇 阅读(384) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 阅读全文
posted @ 2020-03-31 09:24 黄鹏宇 阅读(298) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1085 Perfect Sequence (25分) Given a sequence of positive integers and another po 阅读全文
posted @ 2020-03-26 15:52 黄鹏宇 阅读(192) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1038 Recover the Smallest Number (30分) Given a collection of number segments, yo 阅读全文
posted @ 2020-03-26 13:01 黄鹏宇 阅读(221) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1067 Sort with Swap(0, i) (25分) Given any permutation of the numbers {0, 1, 2,.. 阅读全文
posted @ 2020-03-26 00:01 黄鹏宇 阅读(223) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 The magic shop in Mars is offering some magic coupons. Each coupon has an intege 阅读全文
posted @ 2020-03-25 21:25 黄鹏宇 阅读(142) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1033 To Fill or Not to Fill (25分) With highways available, driving a car from Ha 阅读全文
posted @ 2020-03-25 19:57 黄鹏宇 阅读(291) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1070 Mooncake (25point(s)) Mooncake is a Chinese bakery product traditionally ea 阅读全文
posted @ 2020-03-25 11:28 黄鹏宇 阅读(188) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Eva would like to make a string of beads with her favorite colors so she went to 阅读全文
posted @ 2020-03-16 10:05 黄鹏宇 阅读(163) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 这一篇博客大部分都是借鉴(抄袭)的算法笔记 题目原文 Zhejiang University has 8 campuses and a lot of gates. Fro 阅读全文
posted @ 2020-03-15 14:36 黄鹏宇 阅读(292) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 It is said that in 2011, there are about 100 graduate schools ready to proceed o 阅读全文
posted @ 2020-03-10 19:09 黄鹏宇 阅读(261) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Given a list of N student records with name, ID and grade. You are supposed to s 阅读全文
posted @ 2020-03-10 15:08 黄鹏宇 阅读(191) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原题 The ranklist of PAT is generated from the status list, which shows the scores of 阅读全文
posted @ 2020-03-10 14:42 黄鹏宇 阅读(298) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Forbes magazine publishes every year its list of billionaires based on the annua 阅读全文
posted @ 2020-03-09 23:42 黄鹏宇 阅读(187) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原题 Excel can sort records according to any column. Now you are supposed to imitate 阅读全文
posted @ 2020-03-09 20:49 黄鹏宇 阅读(229) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Programming Ability Test (PAT) is organized by the College of Computer Science a 阅读全文
posted @ 2020-03-09 19:24 黄鹏宇 阅读(240) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 A long-distance telephone company charges its customers by the following rules: 阅读全文
posted @ 2020-03-09 16:13 黄鹏宇 阅读(211) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 To evaluate the performance of our first year CS majored students, we consider t 阅读全文
posted @ 2020-03-08 16:55 黄鹏宇 阅读(415) 评论(0) 推荐(0)
摘要:本博客参考于 https://www.icourse163.org/learn/HIT-1002123007?tid=1450215473#/learn/content?type=detail&id=1214538561&sm=1 词法分析 正则表达式 正则表达式**(Regular Express 阅读全文
posted @ 2020-03-08 14:00 黄鹏宇 阅读(805) 评论(0) 推荐(0)
摘要:这是我们老师布置的第三份作业 本博客参考地址 https://www.runoob.com/python/att-string-split.html https://blog.csdn.net/qq_43210174/article/details/104659334 题目一 编写函数实现输入任意两 阅读全文
posted @ 2020-03-07 17:02 黄鹏宇 阅读(435) 评论(0) 推荐(0)
摘要:一些小技巧 把字符串转换为数字的方法 代码如下 Suma=0; for (i = 0; i < strlen(a); i++) { if (a[i] >= '0' && a[i] <= '9') suma = suma * 10 + (a[i] - '0'); } 最后一行不要空格的问题 我以前一直 阅读全文
posted @ 2020-03-05 16:48 黄鹏宇 阅读(218) 评论(0) 推荐(0)
摘要:语言及其文法 基本概念 字母表 字母表 ∑是一个有穷符号集合 ​ 符号:字母,数字,标点符号 ​ 例: ​ 二进制字母表: 二进制字母表: 二进制字母表: 二进制字母表: { 0,1 } ​ ASCII字符集 ​ Unicode字符集 字母表上的运算 字母表 ∑1和∑2的乘积 (product) ​ 阅读全文
posted @ 2020-03-05 14:32 黄鹏宇 阅读(1081) 评论(0) 推荐(0)
摘要:什么是编译原理 编译原理 编译原理主要就是讲编译器的作用的 下面这张图是很重要的 预处理器的作用: 就是把存储在不同文件中的源程序聚合在一起把把被称为宏的缩写语句转换为原始语句 可重定位: 在内存中存放的起始位置L不是固定的 加载器: 修改可重定位地址:将修改后的指令和数据放到内存中适当的位置 起始 阅读全文
posted @ 2020-03-04 21:56 黄鹏宇 阅读(598) 评论(0) 推荐(0)
摘要:前提知识 一些英文的生词 guaranteed 有保证的 non-overlapping 非重叠的 下面是官方对于id的定义 就是一个对象的地址,不同的对象地址不同 Return the “identity” of an object. This is an integer which is gua 阅读全文
posted @ 2020-03-04 17:06 黄鹏宇 阅读(189) 评论(0) 推荐(0)
摘要:title: C语言程序设计现代方法-第二版-第10章练习题 date: 2018-11-11 08:12:17 tags: 局部变量 外部变量 categories: C语言 1.修改10.2节的栈示例使它存储的是字符而不是整数.接下来,增加main函数,用来要求用户输入一串花括号,然后指出它们之 阅读全文
posted @ 2020-03-03 08:30 黄鹏宇 阅读(407) 评论(0) 推荐(0)
摘要:title: C++基础知识-2 date: 2019-09-05 21:32:25 categories: C++ tags: C++ -因本人才疏学浅,错误之处还请大家指正批评 本文资料来源 本文的目的是让自己复习下那些重点的知识和记录下一些学习的知识,所以知识整理的非常的碎片化. 1 C++里 阅读全文
posted @ 2020-03-03 08:14 黄鹏宇 阅读(149) 评论(0) 推荐(0)
摘要:title: C++基础知识-1 date: 2019-07-25 12:24:01 categories: Game tags: C++ Unreal Engine -因本人才疏学浅,错误之处还请大家指正批评 本文资料来源 这篇博客的目的是个人复习向,知识非常的零散和破碎和浅层 1 auto 可以 阅读全文
posted @ 2020-03-03 08:13 黄鹏宇 阅读(196) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in wh 阅读全文
posted @ 2020-03-02 12:36 黄鹏宇 阅读(221) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Given an integer with no more than 9 digits, you are supposed to read it in the 阅读全文
posted @ 2020-03-01 22:38 黄鹏宇 阅读(251) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原题 The Japanese language is notorious for its sentence ending particles. Personal p 阅读全文
posted @ 2020-03-01 13:48 黄鹏宇 阅读(210) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 To prepare for PAT, the judge sometimes has to generate random passwords for the 阅读全文
posted @ 2020-03-01 10:48 黄鹏宇 阅读(315) 评论(0) 推荐(0)