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 listJun 12, 2023 21:02Victor MuñozVictor MuñozScore: 11,240Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:024,84998,937,67321,820,88702,269,184
2Jun 12, 2023 21:024,87692,734,72921,939,76102,265,088
3Jun 12, 2023 21:024,88582,732,28921,980,64702,265,088
4Jun 12, 2023 21:0211,076241,252,63214,952,00034,888,00029,634,560
5Jun 12, 2023 21:0211,146245,041,40317,833,00032,323,00029,663,232
6Jun 12, 2023 21:0211,207244,992,58114,832,00035,598,00029,700,096
7Jun 12, 2023 21:0211,240239,974,98313,547,00037,031,00029,630,464
8Jun 12, 2023 21:0211,244236,047,64516,866,00033,732,00029,663,232
9Jun 12, 2023 21:0211,252241,708,51316,160,00034,474,00029,544,448
10Jun 12, 2023 21:0211,252238,111,54714,730,00035,906,00029,630,464
11Jun 12, 2023 21:0211,350240,434,38019,004,00032,069,00029,630,464
12Jun 12, 2023 21:0211,422245,756,43820,837,00030,561,00029,663,232