init uv project, add new sum implementations

This commit is contained in:
2026-11-26 13:01:03 +10:00
parent 6b025a81f8
commit d90415c892
9 changed files with 92 additions and 11 deletions
+10
View File
@@ -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};
}