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 31, 2023 16:32Victor MuñozVictor MuñozScore: 12,599Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2023 16:325,32180,421,32423,943,96202,269,184
2Dec 31, 2023 16:325,32292,223,25023,946,77702,252,800
3Dec 31, 2023 16:325,326106,617,82523,965,85002,252,800
4Dec 31, 2023 16:3212,519245,400,81525,914,00030,421,00029,544,448
5Dec 31, 2023 16:3212,561247,497,50922,415,00034,110,00029,663,232
6Dec 31, 2023 16:3212,582251,571,57022,648,00033,973,00029,675,520
7Dec 31, 2023 16:3212,599249,381,80127,213,00029,481,00029,642,752
8Dec 31, 2023 16:3212,622247,202,09822,524,00034,275,00029,671,424
9Dec 31, 2023 16:3212,709253,779,94826,308,00030,884,00029,663,232
10Dec 31, 2023 16:3212,722252,588,94122,096,00035,153,00029,532,160
11Dec 31, 2023 16:3212,782244,630,44527,561,00029,958,00029,708,288
12Dec 31, 2023 16:3212,905251,615,75130,298,00027,773,00029,671,424