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 03:04Yuriy LyfenkoYuriy LyfenkoScore: 12,588Success
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 03:045,45991,895,67324,564,72302,244,608
2May 8, 2023 03:045,47679,005,62624,641,89802,252,800
3May 8, 2023 03:045,71485,821,87425,714,65502,256,896
4May 8, 2023 03:0412,467242,595,45023,287,00032,814,00029,708,288
5May 8, 2023 03:0412,474245,078,94019,602,00036,531,00029,708,288
6May 8, 2023 03:0412,517243,085,77825,911,00030,417,00029,671,424
7May 8, 2023 03:0412,588241,759,50726,588,00030,056,00029,708,288
8May 8, 2023 03:0412,618251,751,48722,136,00034,647,00029,548,544
9May 8, 2023 03:0412,621253,593,68527,817,00028,976,00029,708,288
10May 8, 2023 03:0412,624250,018,88723,144,00033,665,00029,667,328
11May 8, 2023 03:0412,675247,843,13122,815,00034,223,00029,675,520
12May 8, 2023 03:0412,761246,159,22824,014,00033,412,00029,675,520