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 12, 2021 22:25Yurkov AlekseyYurkov AlekseyScore: 17,111Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:259,890103,805,65144,506,76102,232,320
2Oct 12, 2021 22:259,890114,695,05544,506,74502,236,416
3Oct 12, 2021 22:259,957110,931,10344,806,17002,228,224
4Oct 12, 2021 22:2516,881258,884,20840,386,00035,578,00029,618,176
5Oct 12, 2021 22:2516,947259,318,96743,724,00032,539,00029,757,440
6Oct 12, 2021 22:2516,955267,762,55342,164,00034,133,00029,691,904
7Oct 12, 2021 22:2517,111261,655,34644,302,00032,699,00029,499,392
8Oct 12, 2021 22:2517,130262,393,24650,165,00026,918,00029,560,832
9Oct 12, 2021 22:2517,155261,459,32541,568,00035,630,00029,691,904
10Oct 12, 2021 22:2517,176263,567,30740,531,00036,760,00029,650,944
11Oct 12, 2021 22:2517,230262,702,04644,609,00032,925,00029,700,096
12Oct 12, 2021 22:2517,315268,758,82648,844,00029,074,00029,593,600