Nil

Raiyan R.

asked • 06/20/16

i wrote a simple programme. the output was correct in my pc.but when i uploaded it to a wesite the output was different.would someone please tell me why?

the website is hackerrank.
and to one of the programmes my output on pc was
3
4
0
0
4
 
but the same programme when uploaded yields
3
3
0
0
3
for the same test cases.i want to know aout the prolems.

2 Answers By Expert Tutors

By:

David W. answered • 06/20/16

Tutor
4.7 (90)

Experienced Prof

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.