自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 CC++ 生成随机数

C/C++ 生成随机数 1.生成随机数的范围为[0,RAND_MAX] 例如[1,10]。 #include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> //RAND_MAX为stdlib.h文件中的一个常数,大小通常为32767 int main() { sra...

2020-01-10 22:07:01 274

原创 PAT甲级 1001 A+B Format

PAT甲级 1001 A+B Format Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specifi...

2019-12-19 22:20:55 143

原创 LeetCode 1. Two Sum

LeetCode 1. Two Sum 一.题目分析 1.要点: each input would have exactly one solution not use the same element twice 2.散列 定义:将元素通过一个函数转换为整型,使该整数可以尽量唯一的代表该元素 例如: m[nums[i]] = i;//可以体现散列的思想,用空间换时间 散列为什么能够加快查找速...

2019-12-18 19:39:13 147

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除