diff --git a/src/12/c14/c14_lv255.cpp b/src/12/c14/c14_lv255.cpp new file mode 100644 index 0000000..46e1c60 --- /dev/null +++ b/src/12/c14/c14_lv255.cpp @@ -0,0 +1,51 @@ +#include +#include +#include +#include + +using namespace std; + +template +ostream&operator<<(ostream &os,vector const& v){ + os<<"{ "; + if(v.size()==0){ + os<<" }"; + }else{ + for(size_t i=0;i getPrimes(int const& end){ + vector isFactor(end+1,false); + for(int i=2;i primes; + for(int i=2;i nums(5,0); + for(auto const& i:getPrimes(1e5)){ + nums[i%5]++; + } + for(int i=0;i<5;i++){ + cout< #include #include -#include #include using namespace std;