You are not logged in. Please login at www.codechef.com to post your questions!

×

What 's wrong in my code?

INSPITE OF GETTING RIGHT ANSWER FOR GIVEN TEST CASES MY SUBMITTED ANS IS BEING SHOWN WRONG ,WHAT'S WRONG IN MY CODE OR THE TEST CASES I AM LEAVING

QUESTION LINK:https://www.codechef.com/LTIME66B/problems/EVENT

MY CODE LINK:https://pastebin.com/LazuMEXN

asked 26 Nov '18, 13:20

divya_321's gravatar image

1★divya_321
1
accept rate: 0%


There is some problem with output format in your code like printf("\nmany") should be replaced by printf("many\n") and do not print any extra line like line no 41. Also, there is some problem with logic Consider this test case monday tuesday 9 9 output = impossible answer = 9

link

answered 26 Nov '18, 14:39

vipin1407's gravatar image

5★vipin1407
2045
accept rate: 13%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,600

question asked: 26 Nov '18, 13:20

question was seen: 86 times

last updated: 26 Nov '18, 14:39