数学の恋人
What's that supposed to mean
数学の恋人
So should I take it as, that you do use Linux?
数学の恋人
Are you an adult?
数学の恋人
I am learning the same but on cybrary
数学の恋人
What's your age?
数学の恋人
yes, half finished
数学の恋人
Oh for me 4 more years to reach there
数学の恋人
I sure will, also I am preparing to get admission into IIT
数学の恋人
Do you know about IIT?
数学の恋人
No it's an Institue
Anonymous
I know about it
数学の恋人
Indian Institute of Technology
Anonymous
Because i tried for it
Anonymous
lol
数学の恋人
Yes
Anonymous
Steve is this you?
数学の恋人
Anonymous
awesome
数学の恋人
Anonymous
Nope...
数学の恋人
Very
Anonymous
I am in trichi.... 😣
Anonymous
Cse
数学の恋人
It's top institue of India(for engineering at least)
数学の恋人
exactly, still IIT will just put you on the top
数学の恋人
Do you mean fee?
数学の恋人
this is one of them, there are 17 in total
数学の恋人
It's around 4000$
数学の恋人
per semester
数学の恋人
USD
数学の恋人
rupees is like 1,15,000/-
数学の恋人
We have to pay in rupees only, just submit a cheque or Demand draft
数学の恋人
It's not expensive
数学の恋人
Once you get into IIT, you don't have to pay for anything else except the tution fee
Ariana
数学の恋人
Ariana
I’m just hoping to get scholarship to go mit/stanford rn
Abhishek
Hey guys
Ariana
Weather is the least of my concerns tbh
数学の恋人
Yeah I'll come there after I finish my B.Teck at IIT
Ariana
unless its like 40°C without aircon
Ariana
数学の恋人
Abhishek
How can I work with integers of about 500 digits in C++ ?
Ariana
gnu bignum
Ariana
Search it it’s super cool
Ariana
I want triple major xd
数学の恋人
yes but MIT leaves all behind
Abhishek
So is it kind of library?
Ariana
Wanted to go uk but then can only single major
Ariana
Or can code yourself if you’re bored enough
Abhishek
Ok I have heard about GNU GMP are both similar?
Ariana
Should be
Ariana
Ariana
can’t double major even :/
Abhishek
But if I don't want to use library then?
Ariana
I posted an algo some time ago let me try to find
Ariana
You can calculate by squaring and multiplying
A simple algorithm will be
res=1
for(i=0,i<log2(n);++i){
if(n<<i&1){
res=res*a%n
}else{
res=res*res%n
}
}
something like that
Update: pow(a,b,n)
Ariana
^
a^b mod n
Ariana
You can adapt it for multiplication
Abhishek
Thanks
Ariana
iirc there is a faster way for multiplication
数学の恋人
lol
Ariana
https://en.m.wikipedia.org/wiki/Fürer%27s_algorithm
this is a thing
Abhishek
Thanks
Ariana
Lol actually dont use that unless you’re like having few million digits or smt
Abhishek
Ok
BinaryByter
BinaryByter
kek
数学の恋人
https://www.geeksforgeeks.org/multiply-large-numbers-represented-as-strings/
数学の恋人
BinaryByter
slow
BinaryByter
but possible
Ariana
slow
BinaryByter
convert the string to a number first
Ariana
Anyways its better to store large numbers as an array imo
BinaryByter
Ariana
Since its in bits, then can use a really simple algo