![](https://img-blog.csdnimg.cn/20190927151124774.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
欧拉project
欧拉欧拉欧拉
狠人王
怀着一颗热情的心,追随自己的梦想!
展开
-
欧拉函数好题汇总
牛客网小白月赛12 - D月月给华华出题https://ac.nowcoder.com/acm/contest/392/D原创 2019-10-24 21:51:58 · 520 阅读 · 0 评论 -
欧拉计划持续更新
关键是想好的思路,暴力能过一些题目,但是那不是目的 Multiples of 3 and 5 暴力可做,更高效的方法是容斥和数学规律: 3+6+9+12+......+999=3*(1+2+3+4+...+333) //3的倍数,等差数列,最大项为999/3 5+10+15+...+995=5*(1+2+....+199)//5的倍数,等差数列,最...原创 2019-09-11 19:13:40 · 166 阅读 · 0 评论 -
寻找全部质因子
#include <iostream>#include <cmath>using namespace std;typedef long long ll;int main(){ ll x; cin >> x; ll j; while(x != 1) { for(j = 2; j <= x; ...原创 2019-09-12 16:22:35 · 227 阅读 · 1 评论 -
斐波那契数列偶数项+简单高效写法
#include<iostream>#include<vector>using namespace std;int main(){ int a=1,b=2,c=0,sum=0; sum+=2; for(int i=2;a+b<=4e6;i++) { c=b; b=a+b; ...原创 2019-09-12 16:23:45 · 569 阅读 · 0 评论 -
Largest product in a series(字符串解法)
The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869...原创 2019-09-12 16:44:55 · 365 阅读 · 0 评论