I am trying to solve this problem: https://open.kattis.com/problems/znanstvenik
My code runs too slow on the seventh test, but is correct on the first six tests. Does any