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 16, 2021 17:02Ilya AniskovetsIlya AniskovetsScore: 14,701Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 17:027,105103,639,17431,974,40502,265,088
2Oct 16, 2021 17:027,11898,811,91032,031,43002,277,376
3Oct 16, 2021 17:027,19395,202,01832,368,40802,269,184
4Oct 16, 2021 17:0214,575249,731,47931,233,00034,356,00029,507,584
5Oct 16, 2021 17:0214,610256,565,39631,354,00034,389,00029,630,464
6Oct 16, 2021 17:0214,666252,464,86831,967,00034,030,00029,544,448
7Oct 16, 2021 17:0214,701254,310,21632,569,00033,587,00029,630,464
8Oct 16, 2021 17:0214,735259,376,65733,154,00033,154,00029,614,080
9Oct 16, 2021 17:0214,757263,091,47734,310,00032,097,00029,716,480
10Oct 16, 2021 17:0214,802261,806,15530,819,00035,790,00029,724,672
11Oct 16, 2021 17:0214,818253,765,68233,870,00032,811,00029,536,256
12Oct 16, 2021 17:0214,867252,541,56131,361,00035,542,00029,630,464