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 listMay 8, 2023 06:48Yuriy LyfenkoYuriy LyfenkoScore: 12,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:484,95682,037,35122,299,88002,252,800
2May 8, 2023 06:484,97280,491,14422,375,24002,256,896
3May 8, 2023 06:484,97583,625,39622,386,33002,256,896
4May 8, 2023 06:4811,933240,578,77218,841,00034,856,00029,712,384
5May 8, 2023 06:4811,938237,899,27121,489,00032,234,00029,671,424
6May 8, 2023 06:4811,970248,977,88019,845,00034,020,00029,667,328
7May 8, 2023 06:4812,011251,264,08521,196,00032,854,00029,642,752
8May 8, 2023 06:4812,030246,147,37119,686,00034,450,00029,700,096
9May 8, 2023 06:4812,089244,005,21221,334,00033,068,00029,712,384
10May 8, 2023 06:4812,183243,588,14321,722,00033,100,00029,515,776
11May 8, 2023 06:4812,209250,416,77525,181,00029,760,00029,708,288
12May 8, 2023 06:4812,222246,725,82624,444,00030,555,00029,667,328