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 9, 2023 13:20Yuriy LyfenkoYuriy LyfenkoScore: 12,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2023 13:205,96597,075,43926,840,28802,240,512
2May 9, 2023 13:205,97095,552,05726,866,61502,252,800
3May 9, 2023 13:205,97795,973,03826,894,83302,240,512
4May 9, 2023 13:2012,719247,349,96327,473,00029,763,00029,675,520
5May 9, 2023 13:2012,758247,214,11828,121,00029,292,00029,659,136
6May 9, 2023 13:2012,772243,529,50325,545,00031,931,00029,675,520
7May 9, 2023 13:2012,788253,717,34228,230,00029,316,00029,544,448
8May 9, 2023 13:2012,792251,649,77024,981,00032,584,00029,708,288
9May 9, 2023 13:2012,881243,878,98222,596,00035,369,00029,667,328
10May 9, 2023 13:2012,884250,197,57825,299,00032,678,00029,708,288
11May 9, 2023 13:2012,891250,937,24630,856,00027,153,00029,667,328
12May 9, 2023 13:2012,898250,027,99928,472,00029,567,00029,519,872