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 11, 2021 00:48Yuriy LyfenkoYuriy LyfenkoScore: 17,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:4810,625102,353,04947,811,16402,256,896
2Oct 11, 2021 00:4810,644110,352,54947,900,06702,256,896
3Oct 11, 2021 00:4810,651121,262,16947,930,84502,232,320
4Oct 11, 2021 00:4817,301266,500,49542,291,00035,562,00029,659,136
5Oct 11, 2021 00:4817,369267,379,90040,942,00037,220,00029,577,216
6Oct 11, 2021 00:4817,372265,163,45543,539,00034,633,00029,577,216
7Oct 11, 2021 00:4817,378273,017,95138,650,00039,549,00029,491,200
8Oct 11, 2021 00:4817,394273,417,83448,921,00029,352,00029,700,096
9Oct 11, 2021 00:4817,471270,120,40648,044,00030,574,00029,712,384
10Oct 11, 2021 00:4817,477271,497,39242,201,00036,446,00029,708,288
11Oct 11, 2021 00:4817,540263,566,40549,613,00029,316,00029,675,520
12Oct 11, 2021 00:4817,580268,678,35546,410,00032,698,00029,667,328