• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Good Times vs Bad Times

 
Ranch Hand
Posts: 94
1
Oracle Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i wrote the following program to solve th problem on this link-https://www.hackerearth.com/problem/algorithm/good-times-vs-bad-times-3/?utm_source=header&utm_medium=search&utm_campaign=he-search


but when i ran it with sample input "23 58 59"and "23 46 22",the output should have been "0:2" and "1:408" respectively but i got "0:1" and "1:1716".Please help me guys i really stuck
reply
    Bookmark Topic Watch Topic
  • New Topic