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


Invitation to Encoding August '18


Hello everyone!
We are excited to invite you all to Encoding August '18. The contest is hosted by Netaji Subhash Engineering College, Kolkata. The contest will have challenges for all - beginner to advanced programmers. We hope all of you will love to join us and spend the Sunday evening solving exciting coding challenges.

The authors of the contest are:
1. Arkapravo Ghosh
2. Amit Kumar Pandey
3. Rahul Ojha
4. Md Shahid

Contest Details

Date : 5th August
Time : 19:30 hrs - 22:30 hrs(IST)Check your timezone here
Contest Link :
Registration : You just need to have a CodeChef handle to participate. For all those, who are interested and do not have a CodeChef handle, are requested to register in order to participate.

Good Luck!
See you on the ranklist! Happy Coding!

This question is marked "community wiki".

asked 04 Aug '18, 20:32

horsbug98's gravatar image

accept rate: 21%

wikified 11 Aug '18, 13:15

check the contest time in your Time Zone by clicking here


answered 04 Aug '18, 23:23

apamit11's gravatar image

accept rate: 16%

What is special about this answer so it is marked as accepted ??

(09 Aug '18, 16:18) aryanc4035★

Hi, he helped me with the time zone. I forgot that. :)

(15 Aug '18, 22:12) horsbug984★

Hey! I want an explaination for this scenario : Solution 1

Solution 2

In soltion 1 , i'm taking no. of test cases as input through cin and then ignoring the remaining line by using cin.ignore(). This results in WA. While in Solution 2 , i'm taking the no.of test cases as input using getline and then converting it into int. This gives AC. Why is that so?? thanks in advance!


answered 06 Aug '18, 11:23

amulyagaur111's gravatar image

accept rate: 7%

(06 Aug '18, 11:23) amulyagaur1114★

Can you provide the link to your solution, both the wrong and correct.

(07 Aug '18, 16:21) horsbug984★

Hi, in solution 1, the problem is not caused by cin.ignore() after taking the input t. It is caused by cin.ignore() which you wrote after getline(cin, x).
So, everytime you ignore the next character after a line, i.e. the first character of every line of input.
Hope this helps. :D

(15 Aug '18, 22:29) horsbug984★
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 04 Aug '18, 20:32

question was seen: 296 times

last updated: 15 Aug '18, 22:12