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 18:38Yuriy LyfenkoYuriy LyfenkoScore: 13,584Success
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 18:386,422104,609,07928,899,22202,248,704
2Oct 15, 2021 18:386,428101,327,81828,927,23102,252,800
3Oct 15, 2021 18:386,43383,685,35428,948,47702,256,896
4Oct 15, 2021 18:3813,346237,809,14125,738,00034,318,00028,147,712
5Oct 15, 2021 18:3813,532259,017,71225,689,00035,203,00029,667,328
6Oct 15, 2021 18:3813,575246,347,37927,039,00034,050,00029,667,328
7Oct 15, 2021 18:3813,584248,208,24428,456,00032,672,00029,675,520
8Oct 15, 2021 18:3813,622254,116,29629,592,00031,706,00029,671,424
9Oct 15, 2021 18:3813,635251,877,46925,885,00035,472,00029,671,424
10Oct 15, 2021 18:3813,647247,545,28827,635,00033,776,00029,761,536
11Oct 15, 2021 18:3813,755254,392,76928,814,00033,083,00029,675,520
12Oct 15, 2021 18:3813,845268,791,59424,379,00037,924,00029,708,288