harshalpamecha3's blog

By harshalpamecha3, 4 months ago, In English

 https://www.spoj.com/problems/EASYMATH/ My Solution !! Getting Wrong Answer !!

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

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I think you should first take a review before posting blogs on Codeforces.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

The idea is correct but here It is not necessary that all the five numbers are relatively coprime.

  • »
    »
    4 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Means this method is only use when all number are relatively coprime

    • »
      »
      »
      4 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Instead, directly multiply all the numbers in denominator part take LCM of all those.

»
4 weeks ago, # |
  Vote: I like it -17 Vote: I do not like it

Bro I got the same error writing almost the same code have you resolved it?