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 19:24Yuriy LyfenkoYuriy LyfenkoScore: 13,209Success
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 19:245,98785,269,05626,943,66602,260,992
2Oct 15, 2021 19:245,99293,473,92926,963,20502,256,896
3Oct 15, 2021 19:246,01793,600,19727,074,33802,244,608
4Oct 15, 2021 19:2413,155245,258,67729,019,00030,179,00029,675,520
5Oct 15, 2021 19:2413,193248,788,29926,613,00032,754,00029,708,288
6Oct 15, 2021 19:2413,199247,564,50728,077,00031,317,00029,548,544
7Oct 15, 2021 19:2413,209249,263,40321,536,00037,903,00029,626,368
8Oct 15, 2021 19:2413,235250,300,98829,218,00030,341,00029,667,328
9Oct 15, 2021 19:2413,308247,364,72929,377,00030,507,00029,675,520
10Oct 15, 2021 19:2413,350256,251,48327,966,00032,109,00029,675,520
11Oct 15, 2021 19:2413,396249,010,71030,710,00029,573,00029,544,448
12Oct 15, 2021 19:2413,684252,008,31229,649,00031,929,00029,544,448