problem link: https://codeforces.com/contest/489/problem/C
my solution: https://paste.ubuntu.com/p/CCDXX27hRP/
# | User | Rating |
---|---|---|
1 | tourist | 3565 |
2 | Benq | 3540 |
3 | Petr | 3519 |
4 | maroonrk | 3503 |
5 | jiangly | 3391 |
6 | ecnerwala | 3363 |
7 | Radewoosh | 3349 |
8 | scott_wu | 3313 |
9 | ainta | 3298 |
10 | boboniu | 3289 |
# | User | Contrib. |
---|---|---|
1 | 1-gon | 200 |
2 | Errichto | 196 |
3 | rng_58 | 194 |
4 | SecondThread | 186 |
4 | awoo | 186 |
6 | Um_nik | 182 |
7 | vovuh | 179 |
8 | Ashishgup | 176 |
9 | -is-this-fft- | 173 |
9 | maroonrk | 173 |
problem link: https://codeforces.com/contest/489/problem/C
my solution: https://paste.ubuntu.com/p/CCDXX27hRP/
Name |
---|
Even to ask for help, you have to use an alt account??
Real account brother
there is a bug in line $$$41$$$.in while condition, write
==
instead of=
.there might be some other bugs too,for example,what your program prints for test case :3 9
?wrong part of your code:
while( smallest[ j ] = '0') { j++;
I think u mistakenly did last two operation inside loop :)
I found one more mistake so Adding accepted solution of your code: Acceped code