-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
96 lines (74 loc) · 2.13 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include "BigGuys.rel.h"
#include <ctime>
int main(int argc, char** argv)
{
// std::cout << modInverse(123561, 0x10000);
/*
std::string zxc;
std::getline(std::cin, zxc);
BigGuys foo(zxc.c_str()), bar;
bar = foo;
BigGuys kekker(bar);
std::getline(std::cin, zxc);
BigGuys temp(zxc.c_str());
// std::cout << temp << temp.get_len() << std::endl;
//std::cout << temp + kekker;
std::cout << temp << temp.get_len() << temp.get_cap() << std::endl;
*/
/*
std::string foo, bar;
std::getline(std::cin, foo);
std::getline(std::cin, bar);
BigGuys<unsigned short int> lol(foo.c_str());
unsigned short int kek = std::stoul(bar, nullptr, 16);
*/
/*
BigGuys<unsigned short int> lol(foo.c_str()), kek(bar.c_str());
//std::cout << "LOL - " << lol << "KEK - " << kek;
*/
/*
std::string foo, bar;
std::getline(std::cin, foo);
std::getline(std::cin, bar);
unsigned short int kek = std::stoul(bar, nullptr, 16);
BigGuys<unsigned short int> lol(foo.c_str());
auto tmp = lol.div_base(kek);
std::cout << std::get<0>(tmp);
std::cout.unsetf(std::ios::dec);
std::cout.setf(std::ios::hex | std::ios::uppercase);
std::cout << std::get<1>(tmp) << std::endl;
std::cout.unsetf(std::ios::hex | std::ios::uppercase);
std::cout.setf(std::ios::dec);
*/
// BigGuys<unsigned short int> foo;
// foo.gen_rand_vec(101);
// std::cout << foo;
/*
std::string foo;
std::getline(std::cin, foo);
std::string bar;
std::getline(std::cin, bar);
//std::string zxc;
BigGuys<unsigned short int> kek(foo.c_str()), lol(bar.c_str());
clock_t timestamp;
//BigGuys<unsigned short int> tmp(10);
timestamp = clock();
kek.karacuba_mul(lol);
timestamp = clock() - timestamp;
std::cout << clock << std::endl;
timestamp = clock();
kek * lol;
timestamp = clock() - timestamp;
std::cout << timestamp << std::endl;
*/
//std::cout << tmp;
//std::cout << std::get<0>(tmp);
//std::cout << std::get<1>(tmp);
/*
std::cout << kek.power(0);
std::cout << kek.power(1);
std::cout << kek.power(4);
std::cout << kek[0] << std::endl;
*/
return 0;
}