SHA256
init uv project, add new sum implementations
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include<utility>
|
||||
auto get_range(std::size_t n , unsigned t, unsigned T){
|
||||
size_t s = n/T, b = n%T;
|
||||
if(t<b)
|
||||
b=++s*t;
|
||||
else
|
||||
b+=s*t;
|
||||
return std::pair{b, b+s};
|
||||
}
|
||||
Reference in New Issue
Block a user