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
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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 .
Name |
---|