Muhammad_mhs's blog

By Muhammad_mhs, history, 2 months ago, In English

This problem from timus , For this problem, I got AC by this solution. The solution is not working in my codeblocks IDE, but when I reduce the constraints then it works in my CodeBlocks IDE. Currently I have Used codeblocks 20.03 version. Can anyone please help me ? Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • +9
  • Vote: I do not like it

By Muhammad_mhs, history, 9 months ago, In English

Stick Lengths In this problem , sort the array and I have to make all sticks size equal to array[n/2] ( n/2 = median ) then answer should be the minimum. But why I choose median index. Can anyone explain, Please ? Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Muhammad_mhs, history, 13 months ago, In English

In this problem, I have to find sum of all pairs lcm of an array. I find this from morass blog.Can anyone explain it. Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Muhammad_mhs, history, 13 months ago, In English

In this problem the number of integer points on a segment is gcd(x,y)+1. where x = abs(x1-x2) and y = abs(y1-y2). But why it does? Anyone please explain it. Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • +3
  • Vote: I do not like it

By Muhammad_mhs, history, 14 months ago, In English

How can I solve 20 digit number factorization ? Problem link Can anyone explain,please?

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Muhammad_mhs, history, 14 months ago, In English

How to find Lexicographical smallest longest common subsequence ??

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Muhammad_mhs, history, 23 months ago, In English

Can anyone help me for this problem?link is here. I get it from there

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it