https://github.com/xi-plus/oj-stats
Online Judge Stats
https://github.com/xi-plus/oj-stats
Last synced: 7 months ago
JSON representation
Online Judge Stats
- Host: GitHub
- URL: https://github.com/xi-plus/oj-stats
- Owner: Xi-Plus
- License: gpl-3.0
- Created: 2015-11-18T05:42:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T14:43:26.000Z (about 2 years ago)
- Last Synced: 2024-12-28T09:19:14.347Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# oj-stats
Online Judge Stats
Required
---
* Nothing here.
Features
---
### API
Fetch from `/api` via http GET/POST with following parameters.
#### Nodes
| [node](README.md#parameters) | Description | Parameters | Request method |
|---|---|---|---|
| ojinfo | Online judge infomation. | oj `Essential`
node `Essential`
field `Optional` | `?oj={oj-name}`
`&node=ojinfo`
`&field={field-array}` |
| userinfo | User infomation on online judge. | oj `Essential`
node `Essential`
user `Essential`
field `Optional`
validtime `Optional` | `?oj={oj-name}`
`&node=userinfo`
`&user={user-array}`
`&field={field-array}`
`&validtime={valid-time}` |
| userstat | User submitted problem. | oj `Essential`
node `Essential`
user `Essential`
prob `Optional`
field `Optional`
validtime `Optional` | `?oj={oj-name}`
`&node=userstat`
`&user={user-array}`
`&prob={prob-array}`
`&field={field-array}`
`&validtime={valid-time}` |
| probinfo | Problem infomation on online judge. | oj `Essential`
node `Essential`
prob `Essential`
field `Optional` | `?oj={oj-name}`
`&node=probinfo`
`&prob={prob-array}`
`&field={field-array}` |
#### Parameters
| Parameter | Description | Type |
|---|---|---|
| oj | Online judge name. View [here](README.md#supported-oj). | String |
| node | View [here](README.md#nodes). | String |
| user | User ID list. | Array String |
| prob | Problem ID list. | Array String |
| field | Return fields choice. Defalut it all fields. Additional:`link` | Array String |
| validtime | Valid time (seconds). If last fetch time < now - validtime, it will be refreshed. Default in `config/config.php`. | Integer |
#### Supported OJ
| OJ id | OJ name | Link | User ID | Remark |
|---|---|---|---|---|
| bzoj | 大视野在线测评 | http://www.lydsy.com/JudgeOnline | Your login `User ID` ||
| cf | Codeforces | http://codeforces.com | Your login `Handle` | Not supported Field:`userstat->link` |
| gj | Green Judge | http://www.tcgs.tc.edu.tw:1218 | Your login `Account` ||
| hdu | HDU Online Judge | http://acm.hdu.edu.cn | Your login `Author ID` ||
| lightoj | Jan's LightOJ | http://lightoj.com | Your login `User ID` | Not supported Node:`userstat` |
| nthuoj | NTHU Online Judge | http://acm.cs.nthu.edu.tw | Your login `Username` ||
| poj | PKU JudgeOnline | http://poj.org | Your login `User ID` ||
| tioj | TIOJ Infor Online Judge | http://tioj.ck.tp.edu.tw | Your login `Username` ||
| toj | TNFSH Online Judge | http://toj.tfcis.org | View [here](http://toj.tfcis.org/oj/chal/) to find your `ID` ||
| tzj | TNFSH Judge | http://judge.tnfsh.tn.edu.tw:8080 | Your login `Account` ||
| uva | UVa Online Judge | https://uva.onlinejudge.org | Your login `Username` | Not supported Field:`userstat->link` |
| zj | ZeroJudge | http://zerojudge.tw | Your login `Account` ||