I've been training for a while now, and I've encountered a problem. whenever I try to solve a difficult problem, I either think in a solution for like 3 days and then see the tutorial, in which case I waste a lot of time for a single problem, and sometimes the solution doesn't have this much new information for me and isn't worth spending this much time on, or I see the solution earlier than that and I get mad cause I could come up with the solution myself. So I want to ask, how much should I think in the problem before looking up the tutorial? for both IOI-like problems and codeforces problems. Thanks!