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 listJul 18, 2023 20:16gchebanovgchebanovScore: 15,419Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 20:164,586108,386,55020,638,13302,260,992
2Jul 18, 2023 20:164,60366,777,66220,713,33702,265,088
3Jul 18, 2023 20:164,605104,298,53720,721,97602,265,088
4Jul 18, 2023 20:1615,347256,843,21436,623,00032,437,00029,659,136
5Jul 18, 2023 20:1615,362258,491,24237,308,00031,821,00029,544,448
6Jul 18, 2023 20:1615,416260,956,73537,275,00032,098,00029,618,176
7Jul 18, 2023 20:1615,419261,949,11434,693,00034,693,00029,548,544
8Jul 18, 2023 20:1615,422252,438,11434,211,00035,188,00029,659,136
9Jul 18, 2023 20:1615,426256,186,04742,625,00026,793,00029,659,136
10Jul 18, 2023 20:1615,461255,597,73336,346,00033,230,00029,614,080
11Jul 18, 2023 20:1615,500255,805,00734,874,00034,874,00029,544,448
12Jul 18, 2023 20:1615,526262,047,56634,428,00035,441,00029,544,448