(For your information, Lua scripts, not LUA)
It's understandable. I think I will try a simple Lua script and try to shorten the final numbers by starting with manipulate the last 2 numbers without input, then last 3 numbers without input and so on, as long as it's possible. This is mostly "just" time and CPU power dependent once the script runs.
edit: also, 300K polls in a
single frame? edit: nah, throughout the TAS it's 300K but still WOW! I know that the original first versions of NESnake had the ghost input on real consoles (unpressed (IIRC) left or A button registered as a press), so I assume the developer used this code
https://www.nesdev.org/wiki/Controller_reading_code#DPCM_Safety_using_Repeated_Reads but I couldn't find that thread now for correct information
edit2: oh, the thread is here
https://forums.nesdev.org/viewtopic.php?p=36686#p36686 which mentions switching from Blargg's input polling method.
For the judge who will handle this submission, the free download link is on the next page of this post I've linked in edit2 which might require you (I had) to open the site of the file's location.