Hello codeforces community . I am trying to solve this problem : but dont understand which topics' problem is this . Can anyone tell me ?
Is this a DP problem ?
Problem link : http://agc005.contest.atcoder.jp/tasks/agc005_b
№ | Пользователь | Рейтинг |
---|---|---|
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 | luogu_official | 150 |
Hello codeforces community . I am trying to solve this problem : but dont understand which topics' problem is this . Can anyone tell me ?
Is this a DP problem ?
Problem link : http://agc005.contest.atcoder.jp/tasks/agc005_b
Hello codeforces community , can you please suggest me some Bitmask beginner problems ? I am beginner at bitmask . Just Bitmask problems , not Bitmask Dp . Hope someone will suggest me . :)
Hello codeforces community , i am getting TLE . My logic is : First i store those edges node to set those which color are different , then i put a simple dfs on each of the node stored in set which will be exact for root i break the loop and print it . If i aint found a node , print no . Now I understand for which case i got TLE . If i can stop calling dfs again and again , i can reduce TLE . But can find the logic .
Problem : https://toph.co/p/keep-moving What is the logic of problem KEEP MOVING . Can you please explain ? My logic is : I am leveling the graph , using adjacent of X as a source node . If i got a odd level node and this node has no adjacent node Gobu wins , if for all possible there has no node such that odd level node and this node has no adjacent node i am printing gobu cant win .
My code: Code
I think codeforces should add notification option . Because suppose i commented on a blog 2 month ago , nobody replied my comment on that time . After 1 month 1 people answered my comment , and suppose this comment was effective and helpful for others . I forgot about that blog and topic which i commented so i didn't again visit that blog .[ But since there has no notification option so i didn't get such that " user replied to your comment on users blog " . ]
If there was a notification option a can be notified about that blog when someone commented .or reply my comment .
what happended ?
Supppose somenone give me an array up to 10^6 elements . Then gave some quiries up to 3000 , quries will like that from I index to J index sort in descending , or Ascending order . If 1 ascending , if 2 descending . After quiry how will look the array ? Print the array .
There has a problem like that -> Report . But i want not from 0 index i want from any I to J index .
How i can solve this problem without using STL sort . In efficient way .
Название |
---|