自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 C++ 迭代器失效

C++笔记:迭代器失效

2023-01-02 22:55:14 262 1

原创 C++ 模板(未完)

学习笔记:C++ 模板

2022-12-20 11:28:11 84

原创 C++ new 和 delete操作符

C++学习笔记

2022-12-18 18:33:35 116

原创 C++ 类的 6个默认成员函数

学习笔记:C++ 类的 6个默认成员函数

2022-08-24 16:08:25 443

原创 Linux 调试工具gdb(未完)

笔记:Linux 调试工具 gdb

2022-08-16 11:09:32 188

原创 Linux 权限整理(未完)

学习笔记:Linux 权限

2022-08-15 20:39:55 419

原创 常见5种排序(交换、选择、插入、归并、基数)

排序:交换、选择、插入、归并、基数

2022-07-04 22:49:19 488

转载 Free Lunch is Over (免费午餐已经结束)

原文链接:The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software免费的午餐结束了软件并行计算的基本转折点继OO之后软件发展的又一重大变革——并行计算你的免费午餐即将即将结束。我们能做什么?我们又将做什么?主要的处理器设计生产商,从Intel和AMD到SPARC和PowerPC,已经几乎穷尽了所有的传统方法来提高CPU性能。他们专注于多线程和多...

2022-04-10 17:06:53 288

原创 Project Euler | Problem 016

Problem 16Power digit sum2 ^ 15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number2 ^ 1000?幂的数字和2 ^ 15 = 32768,而 32768的各位数字之和是3 + 2 + 7 + 6 + 8 = 26。2 ^ 1000的各位数字之和是多少?/** Program 1* 思..

2022-04-03 18:28:55 249

原创 Project Euler | Problem 015

Lattice pathsStarting in the top left corner of a 2 × 2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.How many such routes are there through a 20 × 20 grid?网格路径从一个 2 × 2网格的左上角出发,若只允

2022-04-01 14:26:18 274

原创 Project Euler | Problem 014

Problem14Longest Collatz sequenceThe following iterative sequence is defined for the set of positive integers:n→n/2(nis even)n→3n+1(nis odd)Using the rule above and starting with13, we generate the following sequence:13→40→20→10→5→16→8→4→2→...

2022-03-22 16:16:06 121

原创 Project Euler | Problem 13

Problem 13Large sumWork out the first ten digits of the sum of the following one-hundred50-digit numbers.37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 743249861995247410594742333095130581237266.

2022-03-07 07:44:42 150

原创 Project Euler | Problem 12

Problem 12Highly divisible triangular numberThe sequence of triangle numbers is generated by adding the natural numbers.So the7thtriangle number would be1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.The first ten terms would be:1, 3, 6, 10, 15, 21, 28, 36, 4...

2022-02-16 16:55:42 327

原创 Project Euler | Problem 11

Largest product in a gridIn the20×20grid below, four numbers along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 0849 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 0081 49 31 73 55 79 14 ..

2022-02-12 22:34:52 244

原创 Project Euler | Problem 10

Problem 10Summation of primesThe sum of the primes below10is2+3+5+7=17.Find the sum of all the primes below two million.质数求和所有小于10的质数的和是2+3+5+7=17。求所有小于两百万的质数的和。/** Program 1* 思路:* 1.遍历范围内的每个数,判断是否是质数* 2.将这些质数求和* 收获:* 评价:* 优点:* 1...

2022-02-11 22:48:19 428

原创 Project Euler | Problem 9

Problem 9Special Pythagorean tripletA Pythagorean triplet is a set of three natural numbers, a<b<c, for which,a^2 + b^2 = c^2For example, 3^2 + 4^2 = 9 +16 = 25 = 52.There exists exactly one Pythagorean triplet for which a + b + c = 1000.

2022-02-01 11:58:49 4803

原创 Project Euler | Problem 8

Problem 8Largest product in a seriesThe four adjacent digits in the1000-digit number that have the greatest product are9×9×8×9=5832.73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112..

2022-01-30 09:53:28 214

原创 Project Euler | Problem 7

Problem 710001st primeBy listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10 001st prime number?第10001个质数前6个质数分别是2、3、5、7、11和13。第10001个质数是多少?/** * Program 1* 思路:* 1.由小到大遍历所有整数,.

2022-01-29 12:04:12 1062

原创 Project Euler | Problem 6

Problem 6Sum square differenceThe sum of the squares of the first ten natural numbers is,$$1^2+2^2+\ldots +10^2=385$$The square of the sum of the first ten natural numbers is,$$(1+2+\ldots+10)^2 = 55^2 = 3025$$Hence the difference between the s

2022-01-20 16:02:28 195

原创 Project Euler | Problem 5

Problem 5Smallest multiple2520is the smallest number that can be divided by each of the numbers from1to10without any remainder.What is the smallest positive number that isevenly divisibleby all of the numbers from1to20?最小公倍数2520是最小的能够被1...

2022-01-15 10:30:30 203

原创 Project Euler | Problem 4

Problem 4Largest palindrome productA palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009=91×99.Find the largest palindrome made from the product of two 3-digit numbers.最大回文乘积回文数

2022-01-14 16:57:50 211

原创 Project Euler | Problem 3

Problem 3Largest prime factorThe prime factors of13195are5,7,13and29.What is the largest prime factor of the number600851475143?最大质因数13195的质因数包括5、7、13和29。600851475143的最大质因数是多少?/********************* Program 1 **********************...

2022-01-13 15:06:40 112

原创 Project Euler | Problem 2

Problem 2Even Fibonacci numbersEach new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with1and2, the first10terms will be:1,2,3,5,8,13,21,34,55,89,…By considering the terms in the Fibonacci sequence ...

2022-01-11 12:05:46 242

原创 Project Euler | Problem 1

Problem 1Multiples of 3 and 5If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000.3或5的倍数在小于10的自然数中,3或5的倍数有3、5、6和9,这

2022-01-10 19:05:08 218

空空如也

空空如也

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

TA关注的人

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