daihan's blog

By daihan, 7 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By daihan, history, 7 years ago, In English

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 . :)

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By daihan, 7 years ago, In English

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 .

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By daihan, 7 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

By daihan, 7 years ago, In English

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 .

Full text and comments »

  • Vote: I like it
  • +19
  • Vote: I do not like it

By daihan, 8 years ago, In English

what happended ?

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By daihan, history, 8 years ago, In English

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 .

Full text and comments »

  • Vote: I like it
  • -4
  • Vote: I do not like it