아름다운
Ok R u learning c language?
AH෴AD
this my brother
AH෴AD
아름다운
yes i am fineshed
Ok could you tell me the difference b/w c language and c# ??
AH෴AD
c not c#
아름다운
c not c#
Both are different so tell me what's that?
Dan
Js is not java though
아름다운
아름다운
Google
i did but a littile bit confuse so if u know tell me the differences
Anonymous
i did but a littile bit confuse so if u know tell me the differences
They differ a lot Like everything is different For more, learn how to Google
Mat
Write a proper message
아름다운
ok
아름다운
iam interested to learn both
Mat
iam interested to learn both
Start with one of 'em
Mat
Learning a language requires a lot of time
Stay Forward
21 day? :D
Dima
Mat
21 day? :D
At least some months in order to use it in some projects
Dima
Lol! Four years and 21 day
Stay Forward
Just joke, reference to book "learnin' c++ in 21 day"
AH෴AD
아름다운
Start with one of 'em
send me a book of any
Mat
send me a book of any
I don't have a title right now
Fabio
21 day? :D
U can if you know how to code
Stay Forward
Hi
Timothy
21 day? :D
I learnt it in 21 hours 😉
Wim
I learned it from interpreting it
Anonymous
But I cannot get the desired output..
are you going through the dragon book by any chance?
professor
hey guya ,, does anyone knows integer overflow?
C.
Wdym by int overflow? When it becomes a negative value?
professor
hey guys , this code is integer overflow issue , but how can I do a proof concept to show it? I Know it is 512 , and then if it's a multiple of 8 which translate to A*8*6*65 then it should crash signed __int64 result; // rax int msg; // [rsp+278h] [rbp-20h] *(_QWORD *)v4 = -1i64; v9 = 62; memset(&Dst, 0, 0x200ui64); if ( msg <= 512 ) size_data = recv(s, &Dst, (unsigned __int16)msg, 0); if ( (signed int)size_data % 8 )
Anonymous
infi ptr
long long int arr[ ][ ]; is accepting values till size of [1000][1000], any idea how to get into 10^6
infi ptr
Use std::vector
I am not comfortable with vectors and stl yet, any idea without using them
infi ptr
Ok, thanx for your input
olli
long long int arr[ ][ ]; is accepting values till size of [1000][1000], any idea how to get into 10^6
you want to create a 2D array where each dimension ins 10^6? That' takes up quite some space...
Anonymous
Ok, thanx for your input
How many RAM do you have?
infi ptr
8 gb, but i am compiling it online
olli
8 gb, but i am compiling it online
8 * 10^12 is roughly 8 TB
Anonymous
8 * 10^12 is roughly 8 TB
Why did you multiply ?
olli
Why did you multiply ?
a 2D array with dimension n and m has n * m elements, hence the multiplication
infi ptr
Ohkay got ot thanks
olli
No, why did you multiply it by 8?
long long int is 8 bytes on most platforms
Anonymous
long long int is 8 bytes on most platforms
Oh, ok I'd write sizeof(long long)
infi ptr
Why do you wanna do that?
Because the question is constrained into that much
Talula
Because the question is constrained into that much
There are ways to sample small chuncks rather than trying to make whole array and then sample things… make array of [100][100], sample that and then move to next [100][100] this way you’ll maintain the size small and the job done.
Anonymous
Because the question is constrained into that much
And this means that you need to come up with a more efficient solution without storing the matrix fully in memory
Anonymous
I've this: int mod = 1e9 + 7; int ans = 0; int dp[1009][1009]; int k = 500 . .//some code . for(int i=1;i<=n;++i){ //cout<<v[i]<<" "; dp[i][0] = 1; for (int j = 1; j <= min(i, k); ++j) { dp[i][j] = (dp[i - 1][j] % mod + (v[i] % mod * dp[i - 1][j - 1] % mod) % mod) % mod; } } Is it possible that my dp[i][j] can exceed the int range in some iteration?
Anonymous
Maybe
Anonymous
That multiplication : (v[i] % mod * dp[i - 1][j - 1]%mod)%mod
Anonymous
Maybe
Wouldn't MODULO operation by mod ensure the value to be within int range?
Anonymous
It's hard to read => hard to estimate possible range of expression
Anonymous
int is most likely not 64 bits, so this can overflow
You are saying it by looking at that multiplication operation?
olli
Everything can overflow
how do you mean?
Anonymous
I mean that any integral type can overflow. Talking general.
olli
I mean that any integral type can overflow. Talking general.
but you can make sure it does not, e.g. uint32_t mul16(uint32_t a, uint32_t b) { return (a & 0xFFFFU) * (b & 0xFFFFU); }
数学の恋人
Hey guys
数学の恋人
xdrawchem/application_ob.cpp:144:5: error: 'qInfo' was not declared in this scope
数学の恋人
Nope
lol