Please help I'm unable to figure out why I'm getting wrong answer in this problem https://codeforces.me/problemset/problem/701/C . My solution — https://codeforces.me/contest/701/submission/58672781
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 159 |
4 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 150 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
Please help I'm unable to figure out why I'm getting wrong answer in this problem https://codeforces.me/problemset/problem/701/C . My solution — https://codeforces.me/contest/701/submission/58672781
Name |
---|
I think your approach is wrong. On this example:
n=9
abcaabbcc
your program outputs 4, but the correct output is 3.
This problem can be solved using prefix sums and binary search. You can take a look at my AC code. I hope this helps :)
Thank you.
Your rating is 1100 — this task is too hard for you. You can solve only Div2 A
Don't say that,unrated guy!
You can't hit his confidence
Check my rating after div3, ok?
If you speak gentlely , you won't get too much downvotes.
I dont care about downvotes
i got +212 btw
Atleast I try.