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 listOct 11, 2021 01:59Yuriy LyfenkoYuriy LyfenkoScore: 15,432Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 01:598,196115,199,12136,881,73202,260,992
2Oct 11, 2021 01:598,200100,433,63436,900,35702,252,800
3Oct 11, 2021 01:598,203102,000,99836,914,36802,256,896
4Oct 11, 2021 01:5915,227259,606,88739,786,00028,734,00029,704,192
5Oct 11, 2021 01:5915,262259,992,94334,824,00033,856,00029,691,904
6Oct 11, 2021 01:5915,392263,977,26835,595,00033,671,00029,667,328
7Oct 11, 2021 01:5915,432263,408,74637,785,00031,658,00029,667,328
8Oct 11, 2021 01:5915,434262,407,84240,152,00029,300,00029,671,424
9Oct 11, 2021 01:5915,637260,574,76135,693,00034,673,00029,708,288
10Oct 11, 2021 01:5915,700264,123,70035,836,00034,813,00029,708,288
11Oct 11, 2021 01:5915,721258,958,43141,548,00029,196,00029,736,960
12Oct 11, 2021 01:5916,032270,302,20346,377,00025,765,00029,675,520