Hello Codeforces community,
I would like to invite you to join HackerRank's 101 Hack 51 which starts at 1500 UTC, August 7, 2017.
There will be five tasks and three hours for you to solve them. The contest will be rated and the top ten contestants will receive HackerRank T-shirts!
The problems are prepared by Yury Shilyaev (hloya_ygrt) and Vlad Vishnevsky (Vladik). (HackerRank only displays one author per problem, but the whole set was actually prepared by both.) I tested the problems and I found them to be interesting. I hope you'll enjoy the problems as much as I did!
Happy Coding!
On HR, Can we filter leaderboard according to people we follow?
They should really add this feature! I love cf because of this!
UPD — Now we can see friends standings! :)
Auto comment: topic has been updated by kevinsogo (previous revision, new revision, compare).
Is brute force the intended solution for B? I managed to grab > 50 pts with it.
EDIT: Nope, I guess it had weak test cases.
Really what brute force approach did you use? Mine only gave 24 points.
Here: https://ideone.com/k6yG4z
It gets TLE on only two test cases. I have also used the fact that if you can't arrange sufficient bricks for a pyramid of size s with top left corner at (i, j), then you cannot hope to create a pyramid of size > s with the same top left corner.
Nope, it is our fault. But I didn't find the submission, that got fullscore with brute. Almost every testset contained matrix with 90% of 1s and 10% of 2s, but it was easy passed by optimized brute.
Accepted :D
Lol, wrong blog again. :P