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:27Yuriy LyfenkoYuriy LyfenkoScore: 15,523Success
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:278,361100,881,04237,623,07102,252,800
2Oct 11, 2021 01:278,36397,509,55137,632,96402,256,896
3Oct 11, 2021 01:278,365106,430,17737,640,73402,265,088
4Oct 11, 2021 01:2715,448261,710,31737,278,00032,240,00029,675,520
5Oct 11, 2021 01:2715,461266,513,21937,949,00031,624,00029,642,752
6Oct 11, 2021 01:2715,521263,912,69936,441,00033,405,00029,667,328
7Oct 11, 2021 01:2715,523259,515,11335,405,00034,448,00029,642,752
8Oct 11, 2021 01:2715,557260,516,74534,524,00035,483,00029,708,288
9Oct 11, 2021 01:2715,605258,793,30538,304,00031,920,00029,708,288
10Oct 11, 2021 01:2715,635259,104,84337,189,00033,169,00029,687,808
11Oct 11, 2021 01:2715,687266,279,73136,304,00034,287,00029,663,232
12Oct 11, 2021 01:2715,795267,026,59039,981,00031,096,00029,638,656