How LGM like tourist, Um_Nik, Petr, dotorya, ACRUSH , rng58 etc. are able to come up with such complex ideas which are required to solve div 1 e or atcoder grand contest last 2 problems which are almost unsolvable. From where they learn these hard tricks,methods and maths(imo level).