direction_'s blog

By direction_, history, 20 months ago, In English

Recently, I tried to work with codeforces API and am interested in finding the total number of accepted question counts but it seems they give a different result. Why?

For example, I fetched all ok verdicts from submission it gave me a count of 173 for my profile but for all times accepted 163 is showing on my codeforces profile page. Is anything being missed to consider?

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

»
20 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Did you submit more than one accepted solution for some problems ?

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

    ohh yes thx that is the main issue you are right

    • »
      »
      »
      15 months ago, # ^ |
        Vote: I like it +5 Vote: I do not like it

      How did you fix it if I may know?

      • »
        »
        »
        »
        15 months ago, # ^ |
          Vote: I like it +5 Vote: I do not like it

        By utilizing the contest_id and index, such as:-

        "contestId": 1829,
        "index": "D",
        

        and combining these two, duplicate entries can be eliminated.