POST
Logging in. Returns a corresponding user entity when logging in successfully.
Type | POST |
---|---|
Endpoint |
https://judgeapi.u-aizu.ac.jp
|
Server | judgeapi |
URI |
/session
|
Exception | USER_NOT_FOUND_ERROR: 400 |
Auth | 〇 |
Parameter | Description | Type | Required | Example |
id |
User ID | string | yes | s1220233 |
password |
Login password | string | yes | **** |
{
"id": "s1220233",
"password": "YOUR_PASSWORD"
}
Field | Description | Type | Frequency | Example |
id |
User ID | string | 1 | s1220233 |
name |
User name | string | 1 | Michael |
affiliation |
Affiliation of the user | string | 1 | University of Aizu |
registerDate |
The date of the user registration | long integer | 1 | 1397723423672 |
lastSubmitDate |
The date of the last submission | long integer | 1 | 1435148630523 |
policy |
The policy of submitted source codes | string | 1 | public |
country |
The country living in | string | 1 | jp |
birthYear |
Birth year | long integer | 1 | 1995 |
displayLanguage |
Display language | string | 1 | Japanese |
defaultProgrammingLanguage |
Default programming language | string | 1 | Python3 |
status |
User status | json | 1 | values below |
- submissions |
The number of submissions | integer | 1 | 27 |
- solved |
The number of solved problems | integer | 1 | 5 |
- accepted |
The number of accepted submissions | integer | 1 | 7 |
- wrongAnswer |
The number of wrong submissions | integer | 1 | 14 |
- timeLimit |
The number of submissions which exceeded time limit | integer | 1 | 0 |
- memoryLimit |
The number of submissions which exceeded memory limit | integer | 1 | 0 |
- outputLimit |
The number of submissions which exceeded the limit of output | integer | 1 | 0 |
- compileError |
The number of compilation failed submissions | integer | 1 | 0 |
- runtimeError |
The number of submissions which caused failure while running | integer | 1 | 6 |
url |
The url of homepage | string | 1 | null |
{
"id":"s1220233",
"name":"Michael",
"affiliation":"University of Aizu",
"registerDate":1397723423672,
"lastSubmitDate":1435148630523,
"policy":"public",
"country":"jp",
"birthYear":null,
"displayLanguage":"Japanese",
"defaultProgrammingLanguage":"Python3",
"status": {
"submissions":27,
"solved":5,
"accepted":7,
"wrongAnswer":14,
"timeLimit":0,
"memoryLimit":0,
"outputLimit":0,
"compileError":0,
"runtimeError":6
},
"url":null
}
API
Something wrong was occurred while executing API.
Error code | 4001 |
---|---|
HTTP status code | INTERNAL_SERVER_ERROR: 500 |
/reviews
(and review.jsp
of the old server) to get a set of source codes. We provide the archive of public source codes here.
Attribute | Description |
---|---|
judge_id | Judge ID |
user_id | User ID |
problem_id | Problem ID |
language | Programming Language |
accuracy |
"Number of success" divided by "Number of test cases" |
status | Judge verdict |
cpu_time | CPU time in 1/100 sec. |
memory | Memory usage in KBytes |
code_size | Length of the code in Bytes |
submission_date | UNIX timestamp of submission date (Milli sec. from 1970/01/01 00:00:00) |
judge_date | UNIX timestamp of judged date (Milli sec. from 1970/01/01 00:00:00) |