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:58Yuriy LyfenkoYuriy LyfenkoScore: 15,408Success
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:588,198111,768,52136,891,69102,256,896
2Oct 11, 2021 01:588,203106,008,39936,913,66602,256,896
3Oct 11, 2021 01:588,20497,039,56836,917,28202,252,800
4Oct 11, 2021 01:5815,293259,305,66041,292,00027,528,00029,708,288
5Oct 11, 2021 01:5815,372258,813,12535,088,00034,086,00029,544,448
6Oct 11, 2021 01:5815,405256,197,39337,720,00031,603,00029,544,448
7Oct 11, 2021 01:5815,408258,670,22234,667,00034,667,00029,732,864
8Oct 11, 2021 01:5815,528262,307,07839,305,00030,570,00029,708,288
9Oct 11, 2021 01:5815,539262,627,41740,121,00029,804,00029,519,872
10Oct 11, 2021 01:5815,554255,033,43437,533,00032,461,00029,708,288
11Oct 11, 2021 01:5815,610272,217,47238,905,00031,340,00029,511,680
12Oct 11, 2021 01:5815,616256,322,85339,669,00030,602,00029,663,232