自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 project euler 21~25

Problem 21 Amicable numbers#include <iostream>#include <cstdio>#include <cmath>using namespace std;const int N = 10000 + 10;int work(int n) { int factorSum[N]; for(...

2019-12-08 20:56:57 171

原创 project euler 16~20

Problem 16 Power digit sum思路高精度乘法,这里用了万进制数,可以少一些循环#include <iostream>#include <cstdio>using namespace std;const int N = 1000 + 10;int work(int x, int n) { int dig[N]; in...

2019-12-05 21:56:08 268

原创 project euler 11~15

Problem 11#include <iostream>#include <cstdio>using namespace std;const int N = 20 + 10;int work(int n) { int arr[N][N]; for(int i = 0; i < n; ++i) { for(int j ...

2019-12-05 21:27:40 178

原创 project euler 6~10

Problem 6 Sum square difference#include <iostream>#include <cstdio>using namespace std;int work(int n) { int t1 = 0, t2 = 0; for(int i = 1; i <= n; i++) { t1 += i...

2019-12-03 22:40:20 144

原创 project euler 1~5

Problem 1 Multiples of 3 and 5#include <iostream>#include <cstdio>using namespace std;int work(int n) { int ans = 0; for(int i = 0; i < n; i++) { ans += (i%3 == 0...

2019-12-03 22:17:24 143

空空如也

空空如也

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

TA关注的人

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