Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listDec 6, 2024 15:35E SequeiraE SequeiraScore: 38,422Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 15:3538,311361,004,138139,130,00033,270,00029,495,296
2Dec 6, 2024 15:3538,345361,844,542141,923,00030,631,00029,622,272
3Dec 6, 2024 15:3538,393363,204,713138,016,00034,752,00029,552,640
4Dec 6, 2024 15:3538,408364,321,140142,335,00030,500,00029,659,136
5Dec 6, 2024 15:3538,422361,731,056140,545,00032,355,00029,552,640
6Dec 6, 2024 15:3538,603360,339,929137,772,00035,940,00029,609,984
7Dec 6, 2024 15:3538,788365,960,986142,717,00031,829,00029,548,544
8Dec 6, 2024 15:3538,838368,460,624140,225,00034,548,00029,630,464
9Dec 6, 2024 15:3539,117361,249,553140,413,00035,612,00029,626,368