本帖最后由 匿名 于 2026-7-31 12:12 编辑
做这种题要求手搓无AI完全是浪费双方时间,直接提前结束,发出来给有用的亲:
REST API: Medical Records By Age Description Use HTTP GET to retrieve patient medical records from a json mock URL,Results are paginated and accessible by appending ?&page= (replace ).
The API response includes:
page: current page per_page: maximum results per page total: total records total_pages: total pages for the query data: array of medical records Each record contains:
id: unique record ID timestamp: record generation timline contains an integer, ageStart.
The second line contains an integer, ageEnd
The last line contains a string, bpDiff
Sample Case 0 Sample Input For Custom Testing
STDIN Function
28 → ageStart = 28 30 → ageEnd = 30 63 → bpDiff = 63 Sample Output
31
The query to json mock URL will return the response:
|