i feel am very weak at math this problem take 2 days with me https://mirror.codeforces.com/contest/2117/problem/D I'm not even close to a solution after 2 days.
my question how i can get better at math?
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | turmax | 3559 |
| 6 | tourist | 3541 |
| 7 | strapple | 3515 |
| 8 | ksun48 | 3461 |
| 9 | dXqwq | 3436 |
| 10 | Otomachi_Una | 3413 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 153 |
| 3 | Um_nik | 147 |
| 4 | Proof_by_QED | 146 |
| 5 | Dominater069 | 145 |
| 6 | errorgorn | 142 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
i feel am very weak at math this problem take 2 days with me https://mirror.codeforces.com/contest/2117/problem/D I'm not even close to a solution after 2 days.
my question how i can get better at math?
| Name |
|---|



First of all, do not spend two days on problems. It's sometimes very tempting to be "disciplined" and never give up on a problem. I used to put monumental energy into problems out of my reach, and I learnt very little, even though I did in fact solve them. If you're stuck for 30 minutes with absolutely no clue — check out the editorial. Use the hints. Check out the solution. Code the thing yourself until you get AC. And move on to another problem. Discipline is about doing the right thing. It's not about looking/proving you're tough, even to yourself.
Second of all, if we're talking CP math, just solve problems. div3 D might be too difficult for someone rated 1000, and that's okay. Be humble and solve something simpler. You'll gain confidence and skill there, get some pattern recognition going, learn to think in terms of problem solving. If you suck at something, the only way to get better is by doing it.
thx
i will solve DIV3 D
I'd just say solve more problems, I'd argue this problem isn't extremely mathy (only algebra is required, and there's also a solution with very minimal math), and you could probably gain the intuition to solve this without directly focusing on math problems.
Also agreeing with the other commenter, div3 D might be a bit difficult for a 1000 rated user and that you shouldn't spend 2 days on a problem (though I've seen conflicting advice on whether to read the editorial or just come back to it later)
I would reccomed doing counting and probability on Alcamus on AOPS website, it’s free
You should consider learning AMC level math for bronze(USACO) or silver level problems. The problems that are in codeforces are very mathy often and the only way to go is to learn the basics of math. consider using alcumus or other free programs such as mathcounts trainer. Also: plsplsplspls never spend more than 3 hours on a problem. if you cannot solve it after 30-40 minutes, It is worth looking at the editorial. The ways that you learn to solve a problem if you solve for a max of 30-40 minutes is much better than discovering the problem by yourself working for 2+ days. I am in USACO silver and learning AMC math helped me a ton.
very thx for u brother Alcumus is very GOOD !