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 15, 2021 19:29Yuriy LyfenkoYuriy LyfenkoScore: 13,260Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:295,991106,173,98226,959,98402,252,800
2Oct 15, 2021 19:295,996103,436,61826,979,89202,256,896
3Oct 15, 2021 19:295,99786,469,09526,988,58602,248,704
4Oct 15, 2021 19:2913,138246,708,38630,697,00028,423,00028,135,424
5Oct 15, 2021 19:2913,186242,806,34928,050,00031,287,00029,511,680
6Oct 15, 2021 19:2913,240242,938,62626,708,00032,872,00029,708,288
7Oct 15, 2021 19:2913,260249,061,30825,720,00033,951,00029,134,848
8Oct 15, 2021 19:2913,269252,142,83527,237,00032,475,00029,638,656
9Oct 15, 2021 19:2913,273244,062,31624,479,00035,250,00029,622,272
10Oct 15, 2021 19:2913,362250,518,39228,483,00031,648,00029,712,384
11Oct 15, 2021 19:2913,378252,191,44828,458,00031,741,00029,675,520
12Oct 15, 2021 19:2913,443255,285,80332,767,00027,726,00029,655,040