Skip to main content

My ICPC Experience 2017

ACM ICPC Onsite Regionals at Amritapuri Coimbatore Campus (26th - 27th December, 2017)

Little bit about our team and preparation :

Our team consisted of 3 persons having somewhat different preparation strategies, I took part in contests most of the time but the weak point was never analyzing and working on my mistakes and never solving the questions which I couldn't solve in the contests. I did a lot of practice, so it was our team strategy that I would code the easiest problem/s.

Akshit Kansra was the one who could make a maths problem really simple to code by converting it to basically a formula or smaller problem just by some intuition or whatever magic he did. So, he had the job of solving the more mathematical kind of problems.

Abhishek Gupta, a nice person who is always enjoying his life, he rarely participated in contests but still practiced and could reach out to the main idea that question requires to be solved. So, we told him to see through questions during contest and generate a good algorithm.

That was all about our preparation and team strategy, we new that this year we are no where into the competition since we could solve maximum 4 problems in the past year contests during our practice sessions which we did using Slack (for communication) since we had vacations after 20th November and our homes were not nearby.

Day before the contest :

Coming to day before contest (26th Dec), all the formalities happened, we had to show our college ID card and tell our team name to get the ICPC kit including the bag, the t-shirt that was to be worn during the contest. Also, the team photos and boomerang our clicked by codechef team and then CCDSAP coupon and codechef t-shirt were offered (we had already received those during Gwalior regionals, so they were not given again).

Just roamed around the beautiful campus after the registration and then went for the practice contest. Its just for checking the computer environment and getting good hands on the keyboard, seeing that all things would work for the main contest the next day. We had already solved all the problems in practice contest earlier and also the same set was used for Gwalior regionals practice contest, so we were kind of reluctant to do them again and so just played around code, working for some new approaches to one of those problems and also gave the print command to code to check that it was working [since we can take printout of our codes during contest to debug or whatsoever].
After it we just roamed around, went back to rooms, had the banquet dinner at night after some cultural program (it was really too awesome).

Something happened during the banquet dinner which I would talk during the end of the post.

We slept early since the contest was at sharp 9 am tomorrow and we had to gather at 8.30 am.

The contest day :

The contest started at sharp 9 am. I was sitting at the computer since I had to solve the easiest problems, the problem which I read at first was too hard to approach, so I kept looking for the easiest problem. I found out it just within first 5 minutes of the contest and then took another 5 minutest to solve it. When I coded it at first, sample input was getting a different output so I just glanced at the problem again and found out that I have not read it properly and it asked something else, so I just took another 2 minutes to change my code and well our team got the first AC within first 15 minutes of the contest. By that time around 150 teams had already solved that problem. 

Then, Abhishek found the 2nd easiest problem of the contest and found out a very easy solution to code, I coded it, it worked for the sample cases but I got a WA verdict. We were just amazed since the solution was perfectly right as told by him. I read the problem again and found out a constraint which I thought might be creating problems but he told me that it has nothing to do with the problem. 

By that time, Akshit had found another doable problem, so he just thought of some good logic to handle it while we were working on 2nd problem. I made another attempt by changing ints to long ints thinking maybe constraints are an issue but that did not help. Moreover than I worked out on a larger test case that I produced and it also gave the right answer, so we left the problem for the time being Akshit coded the 3rd problem. It had been around 30 minutes till that time.

I and Abhishek discussed that problem, but couldn't found any flaw in our solution. Then, Akshit had coded his solution and guess what, after submitting that too got WA verdict. Well, I just thought it wasn't our day. Nevertheless, I told him to check the 2nd question and he also told the same solution, so I looked at my code and guess what, I found a simple bug, I had used another variable in a assignment statement instead of some other variable. So, actually the cases that we tested our problem were kind of symmetrical so they passed but any unsymmetrical case wouldn't have passed. We again submitted it and got AC (3rd attempt). I was relieved after this. It was about 45 minutes into the contest now. 

Akshit then found out some flaw in his solution and then worked out on it, while I and Gupta looked for the 4th easiest problem in the contest, by seeing problem submissions on the contest page, we both came to conclusion about that problem that only Akshit was the one who could tackle it since that was more mathematical. But, he was coding the 3rd one. He tried his 2nd attempt but unfortunately, that also didn't work. So, I got myself into that problem and we discussed his approach, that seemed okay to me but I thought of some problem in his code, so I tried doing it myself but I also got WA (3rd attempt). Then, we also brought Gupta into this problem and he also coded it in his way. He also got WA. Moreover, now we were also confused on one trivial case which was mentioned in comments of the problem, so that worsened the matters. 
Akshit again tried few more attempts after considering that into matter, still got few more WA. Till that time, I was thinking out of a better way to code that. Gupta was making some cases for testing it.  Almost no case failed, it was a tough time. We were frustrated by this problem.
It had been around 4 hours into the contest now after everyone tried their hands on the 3rd problem. So, the ranklist was frozen. We were ranked around 180 out of 255 teams and really felt bad.

Akshit then wrote the code for 4th problem and got TLE. He was thinking on it and I thought of trying the 5th one since I thought it was an easy graph problem. But, I was not satisfied that 3rd problem was still unsolved, I somehow got the right logic, coded it and then it also got WA. But, then I asked Gupta to give some tougher test cases and I modified my code accordingly and got it AC in 9th attempt. Wow, finally relieved. It was only 30 minutes left into the contest. 

Akshit was on the right track to the 4th problem but somehow couldn't think how to code an efficient solution for it. He told his approach to both of us, but we had tough time thinking about that. That's why, we should call him magician of maths. 

Contest finally ended and we were not that happy since our rank would be around 150-170.

After the contest, we had prize distribution and problem discussion session. I could hardly understand the approach discussed for most of the problems since they included some concepts which I had never come across. For the 4th problem, Akshit could understand the approach. The 5th problem, which I thought was an easy graph problem, really included a lot of graph concepts not just one. I was amazed. One problem used triangulation concept, one had bi-partite matching, one used polynomial relaxations and what not. Just amazed.

Seeing the top teams getting the prize, we have made up our mind that if we do it the next time, we need to be in their place. Just motivated a lot by all this. After all this ended, just enjoyed rest of our time in the campus. 

Something that happened during the banquet dinner day before the contest :

Well, I knew the team members (could recognize their faces) of the winner team of Chennai regionals which came here also (they also won the Amritapuri regionals), so I just stopped by and two of them were standing outside the dinner area, I just confirmed whether they were those and then asked out about their preparation strategy, my team members also joined and we took some guidance from them. 

It was really amazing to hear that one of the team member didn't have any social account and he was placed in Uber, also he cleared GSoC in his 3rd year.

I would like to share what they told to us - 
  • They practiced regularly.
  • They read codeforces blogs for concepts and solved problems on Codeforces and Hackerrank.
  • They did team practice (same 5 hours contests) on Codeforces gym around 3-4 times a week in the last few months before contest.
It felt really nice talking to them, seeing that they were also normal people like us.

We also had a talk to the winner team of Gwalior regionals (as we also went there), I would like to tell they also suggested the same points to us including :
  • They suggested us to not just keep solving problems but try to solve those problems from which we could learn new concepts.
  • For this, they suggested us to solve ladder problems on a2oj (codeforces Div 2 C ladder) saying that this is where the learning happens. 
  • They suggested us to keep reading new concepts through codeforces blogs and keep practicing regularly.
We would like to take all these things into consideration while preparing for our next time. We really wish that all Indian teams perform really well in the ACM ICPC Finals 2018 at Beijing.

So, to conclude, it was really a nice experience going to the 2 regionals (Gwalior and Amritapuri). 
All the best if you will be participating in ICPC 2019 regionals.


Comments