Sadek_Mo's blog

By Sadek_Mo, history, 2 months ago, In English

I am trying to fetch the number of solved problems from CodeForces API, but the manual seems like it doesn't support a way to fetch the number of solved problems. The User object doesn't have a parameter for the numberOfSolvedProblems even though it supports other operations like rating and others. I have tried to look at the Github Repo of cfviz to see how they count the number of solved problems, but the code seemed too hard to me. Can anyone suggest a way to do so? or tell me about another API that supports those methods? Thanks in advance.

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

»
2 months ago, # |
  Vote: I like it +3 Vote: I do not like it

Your profile URL It gives the current status of a user. You can count unique problems having status = "OK" using a data structure like the map.

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks for that great method! I appreciate your time.