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 01:47Yuriy LyfenkoYuriy LyfenkoScore: 15,663Success
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 01:478,335102,336,24937,506,56502,256,896
2Oct 11, 2021 01:478,341101,257,91437,535,85802,252,800
3Oct 11, 2021 01:478,345103,984,62437,550,56502,252,800
4Oct 11, 2021 01:4715,571266,057,20137,096,00032,974,00029,708,288
5Oct 11, 2021 01:4715,607260,474,71142,139,00028,093,00029,675,520
6Oct 11, 2021 01:4715,657259,686,99640,106,00030,350,00029,708,288
7Oct 11, 2021 01:4715,663262,182,48236,248,00034,234,00029,577,216
8Oct 11, 2021 01:4715,665266,883,65238,267,00032,225,00029,507,584
9Oct 11, 2021 01:4715,675258,780,87139,187,00031,349,00029,675,520
10Oct 11, 2021 01:4715,699252,776,98840,368,00030,276,00029,659,136
11Oct 11, 2021 01:4715,726264,049,69836,922,00033,845,00029,708,288
12Oct 11, 2021 01:4715,736266,079,04934,920,00035,890,00029,667,328