[Community Puzzle] Tetris Floor - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @cedricdd,validated by @Timinator,@Rafarafa and @Eulero314.
If you have any issues, feel free to ping them.

Nice problem…Trying to solve in C++… Always a problem with the gcc flags :frowning:

Can you tell what is the time limit (seems very low…, I mean like under 2 secs) ?

Probably under a second. You can write a small dummy program that starts a timer after all inputs are read and continuously prints the elapsed time inside a while loop. This should give you a good sense of the time limit.

Hi,

You can’t control the time limit in classic puzzle, so it would be the default time limit set for each languages by Codingame.

Thanks. Did it without too much of a trick (but a lot of sweat :slight_smile: ) and without hard-coding.

Note that C++ perf on coding game is strange anyway…In this problem the worst time I got on tests cases on my laptop (compiling xith MSVC in Visual studio for x64) is less than 120ms…

Profiling included in my solution, BTW…