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 10, 2023 02:47Yuriy LyfenkoYuriy LyfenkoScore: 10,968Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 02:473,54070,049,42015,928,68702,244,608
2May 10, 2023 02:473,54086,855,15115,929,15102,248,704
3May 10, 2023 02:473,55086,227,11515,975,32302,248,704
4May 10, 2023 02:4710,943241,369,78816,787,00032,455,00029,675,520
5May 10, 2023 02:4710,949242,701,54815,724,00033,546,00029,659,136
6May 10, 2023 02:4710,966238,945,79218,236,00031,109,00029,675,520
7May 10, 2023 02:4710,968241,213,36816,116,00033,241,00029,671,424
8May 10, 2023 02:4710,970238,936,77717,552,00031,814,00029,663,232
9May 10, 2023 02:4710,980242,295,58413,983,00035,426,00029,679,616
10May 10, 2023 02:4711,017243,174,04815,864,00033,712,00029,708,288
11May 10, 2023 02:4711,041248,250,51714,613,00035,073,00029,515,776
12May 10, 2023 02:4711,067239,724,48815,936,00033,865,00029,659,136