diff --git a/P7076/P7076.cpp b/P7076/P7076.cpp index 747522d..88d2485 100644 --- a/P7076/P7076.cpp +++ b/P7076/P7076.cpp @@ -33,6 +33,12 @@ bitset<64+5> bt; ReadNumber readull; #define cin readull +template +constexpr T safe_left_shift(const T t,const size_t n)noexcept{ + constexpr auto sizeof_t = sizeof(t)*8; + return (n>=sizeof_t?0:t<>n>>m>>c>>k; @@ -53,6 +59,7 @@ int main(){ } } - for(int i=0;i