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 listMay 31, 2023 03:23Victor MuñozVictor MuñozScore: 13,702Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2023 03:236,58284,313,80029,617,08702,244,608
2May 31, 2023 03:236,595106,436,69729,675,38402,244,608
3May 31, 2023 03:236,60293,172,62429,707,53002,256,896
4May 31, 2023 03:2313,604252,265,83130,609,00030,609,00029,474,816
5May 31, 2023 03:2313,617249,170,12228,206,00033,070,00029,708,288
6May 31, 2023 03:2313,701251,122,02531,388,00030,267,00029,675,520
7May 31, 2023 03:2313,702253,870,24628,774,00032,885,00029,638,656
8May 31, 2023 03:2313,824252,315,08230,558,00031,649,00029,708,288
9May 31, 2023 03:2313,832249,048,08229,539,00032,704,00029,712,384
10May 31, 2023 03:2313,860251,427,92934,242,00028,128,00029,544,448
11May 31, 2023 03:2313,968251,185,78231,428,00031,428,00029,663,232
12May 31, 2023 03:2313,977255,107,19529,351,00033,544,00029,691,904