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 listJun 12, 2023 21:47Victor MuñozVictor MuñozScore: 10,849Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:473,70977,170,54116,691,75302,240,512
2Jun 12, 2023 21:473,71156,900,72116,698,24402,256,896
3Jun 12, 2023 21:473,72676,074,18516,765,31702,248,704
4Jun 12, 2023 21:4710,690234,296,60416,781,00031,325,00029,655,040
5Jun 12, 2023 21:4710,728244,742,82018,390,00029,884,00029,741,056
6Jun 12, 2023 21:4710,807233,124,86015,130,00033,502,00029,650,944
7Jun 12, 2023 21:4710,849239,275,00514,646,00034,175,00029,708,288
8Jun 12, 2023 21:4710,878235,383,65222,107,00026,844,00029,675,520
9Jun 12, 2023 21:4710,900239,080,86316,349,00032,699,00029,675,520
10Jun 12, 2023 21:4710,927236,249,30515,366,00033,805,00029,655,040
11Jun 12, 2023 21:4710,952243,223,22816,428,00032,857,00029,659,136
12Jun 12, 2023 21:4711,285245,894,31819,817,00030,965,00029,573,120