Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 682c00ed authored by Guangting Yu's avatar Guangting Yu
Browse files

main skeleton

parent e7fe6fc7
#include <iostream>
#include <cassert>
#include <vector>
using namespace std;
class EulerSum{
size_t length;
size_t power;
size_t range;
void thread_manager(){
// serial
for(auto s=range; s<2*range; ++s){
}
}
public:
EulerSum(auto l, auto p, auto r):
length(l), power(p), range(r) {
if(range<length){
cerr << endl;
return;
}
thread_manager();
}
};
int main(int argc, char* argv[]){
assert(argc==4);
EulerSum _(
static_cast<size_t>(atoi(argv[1])),
static_cast<size_t>(atoi(argv[2])),
static_cast<size_t>(atoi(argv[3]))
);
return EXIT_SUCCESS;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment