Skip to content

Commit

Permalink
Merge branch 'master' into 241128
Browse files Browse the repository at this point in the history
  • Loading branch information
moesoha authored Dec 10, 2024
2 parents b652285 + d84c882 commit 33c9e07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: install node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: get pnpm store
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: set up pnpm cache
uses: actions/cache@v3
- name: install node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: 'pnpm'

- name: install dependencies
run: pnpm install
Expand All @@ -48,7 +33,7 @@ jobs:
run: pnpm run build

- name: upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: help-site
path: build
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: needs.check.outputs.secrets == 'ok'
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/luogu/account/elo-ranking.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## 2. 洛谷中的比赛等级分系统

洛谷采用了类似 AtCoder 的等级分计算方式,可参见 [https://www.luogu.com.cn/blog/ak-ioi/cf-at-rating](https://www.luogu.com.cn/blog/ak-ioi/cf-at-rating)
洛谷采用了类似 AtCoder 的等级分计算方式,可参见 [https://www.luogu.com.cn/article/jbekb3o8](https://www.luogu.com.cn/article/jbekb3o8)

比赛等级分的计算涉及两个主要因素:预期胜率和实际比赛结果。预期胜率是基于选手的当前等级分差异来计算的。如果一个选手击败另一个的选手,那么前者的等级分将会上升,而后者的等级分则会下降。当一个选手参加比赛场次较少时,等级分可能无法体现选手的真实水平。当选手参加 5 次比赛以后,将会逐渐收敛到选手的真实水平。

Expand Down

0 comments on commit 33c9e07

Please sign in to comment.