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 2, 2023 17:54Victor MuñozVictor MuñozScore: 12,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2023 17:544,92577,437,84022,163,45802,248,704
2Jun 2, 2023 17:544,92580,602,75722,163,59702,252,800
3Jun 2, 2023 17:544,92686,864,66522,166,11002,252,800
4Jun 2, 2023 17:5411,931244,208,21421,273,00032,417,00029,675,520
5Jun 2, 2023 17:5412,101245,861,56721,176,00033,277,00029,696,000
6Jun 2, 2023 17:5412,119234,715,56521,815,00032,722,00029,675,520
7Jun 2, 2023 17:5412,137245,286,27723,407,00031,210,00029,667,328
8Jun 2, 2023 17:5412,162240,948,70521,463,00033,268,00029,708,288
9Jun 2, 2023 17:5412,172237,461,88723,475,00031,300,00029,667,328
10Jun 2, 2023 17:5412,188244,188,51521,168,00033,677,00029,659,136
11Jun 2, 2023 17:5412,236249,195,94819,272,00035,791,00029,675,520
12Jun 2, 2023 17:5412,455254,837,55323,850,00032,198,00029,638,656