I am getting TLE for C and D. Any hints ?
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | nor | 150 |
I am getting TLE for C and D. Any hints ?
I tried a solution based on dp but I am getting WA: link to my solution: https://mirror.codeforces.com/contest/1113/submission/136000085
I got the greedy approach, just want to know if it can be solved using dp and what I am missing in dp.
I am not able to find a counter example for my solution: https://mirror.codeforces.com/contest/1480/submission/135897388
Thanks
Not sure what I am missing in logic. Help !
Link to my solution: https://mirror.codeforces.com/contest/1593/submission/134690219
Here is my solution: https://mirror.codeforces.com/contest/1436/submission/131680312
For all the numbers in the test case, the sum I get for the rows and columns is a prime number, but it still fails. Any help is appreciated.
2-5 3-11 4-19 5-29 6-41 7-55 8-71 9-89 10-109 100-10099
Hi All
I am not able to see where the logic fails, any help?
https://mirror.codeforces.com/contest/1472/submission/120840001
Thanks
Hi All
Can someone help find the fault in the logic ?
https://mirror.codeforces.com/contest/1534/submission/119410596
Regards
While solving 230A I came across a failing test case 104218672 1 2 1 0 1 0
This is should result in YES, I think, but the judges say that it is NO. Can someone explain to me why this is NO?
Название |
---|