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:32Yuriy LyfenkoYuriy LyfenkoScore: 18,216Success
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:328,895125,111,94740,026,62302,265,088
2Oct 11, 2021 01:328,900103,458,82540,048,34102,277,376
3Oct 11, 2021 01:328,922109,485,65840,147,45502,269,184
4Oct 11, 2021 01:3218,144270,073,45948,574,00033,072,00029,597,696
5Oct 11, 2021 01:3218,145267,038,60846,237,00035,416,00029,667,328
6Oct 11, 2021 01:3218,173269,086,53848,044,00033,733,00029,556,736
7Oct 11, 2021 01:3218,216266,407,92350,034,00031,936,00029,548,544
8Oct 11, 2021 01:3218,348273,053,27246,753,00035,811,00029,495,296
9Oct 11, 2021 01:3218,349268,230,87951,745,00030,827,00029,556,736
10Oct 11, 2021 01:3218,353270,228,48553,913,00028,677,00029,593,600
11Oct 11, 2021 01:3218,369269,199,64152,207,00030,454,00029,548,544
12Oct 11, 2021 01:3218,493270,322,60046,564,00036,656,00029,556,736