From 8875d07b8fc36306bff1762aa64c3d73a5c15c50 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 29 Dec 2024 11:14:21 +0800 Subject: [PATCH] update --- src/12/c14/c14_lv255.cpp | 51 ++++++++++++++++++++++++++++++++++++++++ src/12/c14/c14_prime.cpp | 1 - 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/12/c14/c14_lv255.cpp 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;