Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

마라톤 관련 신규 엔드포인트 #73

Open
w8385 opened this issue Jun 10, 2024 · 0 comments
Open

마라톤 관련 신규 엔드포인트 #73

w8385 opened this issue Jun 10, 2024 · 0 comments

Comments

@w8385
Copy link
Contributor

w8385 commented Jun 10, 2024

로그인한 사용자의 이번주 랜덤 마라톤 정보를 가져오기

https://solved.ac/api/v3/account/marathon/current

스킴

{
  "edition": number,
  "problems": List<Problem>
  "solvedProblemsTotal":  number
}
JSON 샘플
{
  "edition": 1,
  "problems": [
    {
      "id": "A",
      "problem": {
        "problemId": 31922,
        "titleKo": "이 대회는 이제 제 겁니다",
        "titles": [
          {
            "language": "ko",
            "languageDisplayName": "ko",
            "title": "이 대회는 이제 제 겁니다",
            "isOriginal": true
          }
        ],
        "isSolvable": true,
        "isPartial": false,
        "acceptedUserCount": 569,
        "level": 2,
        "votedUserCount": 46,
        "sprout": false,
        "givesNoRating": false,
        "isLevelLocked": false,
        "averageTries": 1.3638,
        "official": true,
        "tags": [
          {
            "key": "arithmetic",
            "isMeta": false,
            "bojTagId": 121,
            "problemCount": 1091,
            "displayNames": [
              {
                "language": "ko",
                "name": "사칙연산",
                "short": "사칙연산"
              },
              {
                "language": "en",
                "name": "arithmetic",
                "short": "arithmetic"
              },
              {
                "language": "ja",
                "name": "算数",
                "short": "算数"
              }
            ],
            "aliases": [
              {
                "alias": "덧셈"
              },
              {
                "alias": "뺄셈"
              },
              {
                "alias": "곱셈"
              },
              {
                "alias": "나눗셈"
              },
              {
                "alias": "더하기"
              },
              {
                "alias": "빼기"
              },
              {
                "alias": "곱하기"
              },
              {
                "alias": "나누기"
              }
            ]
          },
          {
            "key": "math",
            "isMeta": false,
            "bojTagId": 124,
            "problemCount": 6232,
            "displayNames": [
              {
                "language": "ko",
                "name": "수학",
                "short": "수학"
              },
              {
                "language": "en",
                "name": "mathematics",
                "short": "math"
              },
              {
                "language": "ja",
                "name": "数学",
                "short": "数学"
              }
            ],
            "aliases": [
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": true,
  "redeemable": true,
  "stardusts": 65
},
{
  "id": "B",
  "problem": {
    "problemId": 16131,
    "titleKo": "기숙사 서바이벌 (Dormvival Games)",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "기숙사 서바이벌 (Dormvival Games)",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 82,
    "level": 7,
    "votedUserCount": 10,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 7.7195,
    "official": true,
    "tags": [
      {
        "key": "implementation",
        "isMeta": false,
        "bojTagId": 102,
        "problemCount": 5423,
        "displayNames": [
          {
            "language": "ko",
            "name": "구현",
            "short": "구현"
          },
          {
            "language": "en",
            "name": "implementation",
            "short": "impl"
          },
          {
            "language": "ja",
            "name": "実装",
            "short": "impl"
          }
        ],
        "aliases": [
          
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 65
},
{
  "id": "C",
  "problem": {
    "problemId": 17610,
    "titleKo": "양팔저울",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "양팔저울",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 1856,
    "level": 10,
    "votedUserCount": 56,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 2.4515,
    "official": true,
    "tags": [
      {
        "key": "bruteforcing",
        "isMeta": false,
        "bojTagId": 125,
        "problemCount": 2142,
        "displayNames": [
          {
            "language": "ko",
            "name": "브루트포스 알고리즘",
            "short": "브루트포스 알고리즘"
          },
          {
            "language": "en",
            "name": "bruteforcing",
            "short": "bruteforce"
          },
          {
            "language": "ja",
            "name": "全探索",
            "short": "全探索"
          }
        ],
        "aliases": [
          {
            "alias": "완전탐색"
          },
          {
            "alias": "완전 탐색"
          },
          {
            "alias": "브루트포스"
          },
          {
            "alias": "bruteforce"
          },
          {
            "alias": "brute force"
          },
          {
            "alias": "완탐"
          }
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": true,
  "redeemable": true,
  "stardusts": 130
},
{
  "id": "D",
  "problem": {
    "problemId": 28361,
    "titleKo": "크리스마스",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "크리스마스",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 107,
    "level": 11,
    "votedUserCount": 23,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 1.8692,
    "official": true,
    "tags": [
      {
        "key": "ad_hoc",
        "isMeta": false,
        "bojTagId": 109,
        "problemCount": 1436,
        "displayNames": [
          {
            "language": "ko",
            "name": "애드 혹",
            "short": "애드 혹"
          },
          {
            "language": "en",
            "name": "ad-hoc",
            "short": "ad-hoc"
          },
          {
            "language": "ja",
            "name": "アドホック",
            "short": "アドホック"
          }
        ],
        "aliases": [
          
        ]
      },
      {
        "key": "constructive",
        "isMeta": false,
        "bojTagId": 128,
        "problemCount": 978,
        "displayNames": [
          {
            "language": "ko",
            "name": "해 구성하기",
            "short": "해 구성하기"
          },
          {
            "language": "en",
            "name": "constructive",
            "short": "constructive"
          },
          {
            "language": "ja",
            "name": "構成的",
            "short": "構成的"
          }
        ],
        "aliases": [
          {
            "alias": "constructive"
          },
          {
            "alias": "컨스트럭티브"
          },
          {
            "alias": "구성적"
          }
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 130
},
{
  "id": "E",
  "problem": {
    "problemId": 25577,
    "titleKo": "열 정렬정렬 정",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "열 정렬정렬 정",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 193,
    "level": 12,
    "votedUserCount": 43,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 1.487,
    "official": true,
    "tags": [
      {
        "key": "greedy",
        "isMeta": false,
        "bojTagId": 33,
        "problemCount": 2474,
        "displayNames": [
          {
            "language": "ko",
            "name": "그리디 알고리즘",
            "short": "그리디 알고리즘"
          },
          {
            "language": "en",
            "name": "greedy",
            "short": "greedy"
          },
          {
            "language": "ja",
            "name": "貪欲法",
            "short": "貪欲法"
          }
        ],
        "aliases": [
          {
            "alias": "탐욕법"
          }
        ]
      },
      {
        "key": "permutation_cycle_decomposition",
        "isMeta": false,
        "bojTagId": 171,
        "problemCount": 87,
        "displayNames": [
          {
            "language": "ko",
            "name": "순열 사이클 분할",
            "short": "순열 사이클 분할"
          },
          {
            "language": "en",
            "name": "permutation cycle decomposition",
            "short": "permutation cycle decomposition"
          },
          {
            "language": "ja",
            "name": "順列サイクル分解",
            "short": "順列サイクル分解"
          }
        ],
        "aliases": [
          
        ]
      },
      {
        "key": "sorting",
        "isMeta": false,
        "bojTagId": 97,
        "problemCount": 1821,
        "displayNames": [
          {
            "language": "ko",
            "name": "정렬",
            "short": "정렬"
          },
          {
            "language": "en",
            "name": "sorting",
            "short": "sorting"
          },
          {
            "language": "ja",
            "name": "ソート",
            "short": "ソート"
          }
        ],
        "aliases": [
          
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 195
},
{
  "id": "F",
  "problem": {
    "problemId": 15685,
    "titleKo": "드래곤 커브",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "드래곤 커브",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 10805,
    "level": 13,
    "votedUserCount": 97,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 1.7872,
    "official": true,
    "tags": [
      {
        "key": "implementation",
        "isMeta": false,
        "bojTagId": 102,
        "problemCount": 5423,
        "displayNames": [
          {
            "language": "ko",
            "name": "구현",
            "short": "구현"
          },
          {
            "language": "en",
            "name": "implementation",
            "short": "impl"
          },
          {
            "language": "ja",
            "name": "実装",
            "short": "impl"
          }
        ],
        "aliases": [
          
        ]
      },
      {
        "key": "simulation",
        "isMeta": false,
        "bojTagId": 141,
        "problemCount": 1061,
        "displayNames": [
          {
            "language": "ko",
            "name": "시뮬레이션",
            "short": "시뮬레이션"
          },
          {
            "language": "en",
            "name": "simulation",
            "short": "simulation"
          },
          {
            "language": "ja",
            "name": "シミュレーション",
            "short": "シミュレーション"
          }
        ],
        "aliases": [
          
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 195
},
{
  "id": "G",
  "problem": {
    "problemId": 3876,
    "titleKo": "sed 이용",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "sed 이용",
        "isOriginal": false
      },
      {
        "language": "en",
        "languageDisplayName": "en",
        "title": "Repeated Substitution with Sed",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 35,
    "level": 13,
    "votedUserCount": 3,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 1.8857,
    "official": true,
    "tags": [
      {
        "key": "bfs",
        "isMeta": false,
        "bojTagId": 126,
        "problemCount": 965,
        "displayNames": [
          {
            "language": "ko",
            "name": "너비 우선 탐색",
            "short": "너비 우선 탐색"
          },
          {
            "language": "en",
            "name": "breadth-first search",
            "short": "bfs"
          },
          {
            "language": "ja",
            "name": "幅優先検索",
            "short": "bfs"
          }
        ],
        "aliases": [
          {
            "alias": "breadthfirst"
          },
          {
            "alias": "breadth first"
          }
        ]
      },
      {
        "key": "data_structures",
        "isMeta": false,
        "bojTagId": 175,
        "problemCount": 3738,
        "displayNames": [
          {
            "language": "ko",
            "name": "자료 구조",
            "short": "자료 구조"
          },
          {
            "language": "en",
            "name": "data structures",
            "short": "ds"
          },
          {
            "language": "ja",
            "name": "データ構造",
            "short": "ds"
          }
        ],
        "aliases": [
          {
            "alias": "자료구조"
          },
          {
            "alias": "자구"
          }
        ]
      },
      {
        "key": "graphs",
        "isMeta": false,
        "bojTagId": 7,
        "problemCount": 3615,
        "displayNames": [
          {
            "language": "ko",
            "name": "그래프 이론",
            "short": "그래프 이론"
          },
          {
            "language": "en",
            "name": "graph theory",
            "short": "graph"
          },
          {
            "language": "ja",
            "name": "グラフ理論",
            "short": "グラフ"
          }
        ],
        "aliases": [
          {
            "alias": "그래프이론"
          },
          {
            "alias": "그래프"
          }
        ]
      },
      {
        "key": "graph_traversal",
        "isMeta": false,
        "bojTagId": 11,
        "problemCount": 1969,
        "displayNames": [
          {
            "language": "ko",
            "name": "그래프 탐색",
            "short": "그래프 탐색"
          },
          {
            "language": "en",
            "name": "graph traversal",
            "short": "traversal"
          },
          {
            "language": "ja",
            "name": "グラフの探索",
            "short": "横断"
          }
        ],
        "aliases": [
          {
            "alias": "bfs"
          },
          {
            "alias": "dfs"
          }
        ]
      },
      {
        "key": "hash_set",
        "isMeta": false,
        "bojTagId": 136,
        "problemCount": 621,
        "displayNames": [
          {
            "language": "ko",
            "name": "해시를 사용한 집합과 맵",
            "short": "해시를 사용한 집합과 맵"
          },
          {
            "language": "en",
            "name": "set / map by hashing",
            "short": "hashset"
          },
          {
            "language": "ja",
            "name": "ハッシュ化によるセット・マップ",
            "short": "hashset"
          }
        ],
        "aliases": [
          {
            "alias": "집합"
          },
          {
            "alias": "맵"
          },
          {
            "alias": "셋"
          },
          {
            "alias": "딕셔너리"
          },
          {
            "alias": "dictionary"
          },
          {
            "alias": "map"
          },
          {
            "alias": "set"
          },
          {
            "alias": "해싱"
          },
          {
            "alias": "hashing"
          },
          {
            "alias": "dict"
          }
        ]
      },
      {
        "key": "implementation",
        "isMeta": false,
        "bojTagId": 102,
        "problemCount": 5423,
        "displayNames": [
          {
            "language": "ko",
            "name": "구현",
            "short": "구현"
          },
          {
            "language": "en",
            "name": "implementation",
            "short": "impl"
          },
          {
            "language": "ja",
            "name": "実装",
            "short": "impl"
          }
        ],
        "aliases": [
          
        ]
      },
      {
        "key": "simulation",
        "isMeta": false,
        "bojTagId": 141,
        "problemCount": 1061,
        "displayNames": [
          {
            "language": "ko",
            "name": "시뮬레이션",
            "short": "시뮬레이션"
          },
          {
            "language": "en",
            "name": "simulation",
            "short": "simulation"
          },
          {
            "language": "ja",
            "name": "シミュレーション",
            "short": "シミュレーション"
          }
        ],
        "aliases": [
          
        ]
      },
      {
        "key": "string",
        "isMeta": false,
        "bojTagId": 158,
        "problemCount": 2341,
        "displayNames": [
          {
            "language": "ko",
            "name": "문자열",
            "short": "문자열"
          },
          {
            "language": "en",
            "name": "string",
            "short": "string"
          },
          {
            "language": "ja",
            "name": "文字列",
            "short": "文字列"
          }
        ],
        "aliases": [
          {
            "alias": "스트링"
          }
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 260
},
{
  "id": "H",
  "problem": {
    "problemId": 25545,
    "titleKo": "MMST",
    "titles": [
      {
        "language": "ko",
        "languageDisplayName": "ko",
        "title": "MMST",
        "isOriginal": true
      }
    ],
    "isSolvable": true,
    "isPartial": false,
    "acceptedUserCount": 64,
    "level": 14,
    "votedUserCount": 24,
    "sprout": false,
    "givesNoRating": false,
    "isLevelLocked": false,
    "averageTries": 5.3438,
    "official": true,
    "tags": [
      {
        "key": "graphs",
        "isMeta": false,
        "bojTagId": 7,
        "problemCount": 3615,
        "displayNames": [
          {
            "language": "ko",
            "name": "그래프 이론",
            "short": "그래프 이론"
          },
          {
            "language": "en",
            "name": "graph theory",
            "short": "graph"
          },
          {
            "language": "ja",
            "name": "グラフ理論",
            "short": "グラフ"
          }
        ],
        "aliases": [
          {
            "alias": "그래프이론"
          },
          {
            "alias": "그래프"
          }
        ]
      },
      {
        "key": "mst",
        "isMeta": false,
        "bojTagId": 49,
        "problemCount": 199,
        "displayNames": [
          {
            "language": "ko",
            "name": "최소 스패닝 트리",
            "short": "최소 스패닝 트리"
          },
          {
            "language": "en",
            "name": "minimum spanning tree",
            "short": "mst"
          },
          {
            "language": "ja",
            "name": "最小全域木",
            "short": "最小全域木"
          }
        ],
        "aliases": [
          
        ]
      }
    ],
    "metadata": {
      
    }
  },
  "redeemed": false,
  "redeemable": false,
  "stardusts": 260
}

],
"solvedProblemsTotal": 2
}


로그인한 사용자의 랜덤 마라톤 설정을 가져오기

https://solved.ac/api/v3/account/marathon/language_status

스킴

{
  "language": string,
  "settingsApplicable": boolean,
  "alreadyChanged": boolean
}
JSON 샘플
{
  "language": "en_ko",
  "settingsApplicable": false,
  "alreadyChanged": false
}
@w8385 w8385 changed the title 마라톤 관련 신규 엔드포인 마라톤 관련 신규 엔드포인트 Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant