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 07:08Ilya AniskovetsIlya AniskovetsScore: 16,645Success
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 07:089,546117,345,11242,957,03602,248,704
2Oct 16, 2021 07:089,587103,289,24143,140,04802,252,800
3Oct 16, 2021 07:089,659116,274,08843,465,90102,248,704
4Oct 16, 2021 07:0816,529263,794,48941,776,00032,605,00029,642,752
5Oct 16, 2021 07:0816,546261,213,77240,703,00033,754,00029,544,448
6Oct 16, 2021 07:0816,630259,854,38538,377,00036,459,00029,503,488
7Oct 16, 2021 07:0816,645267,385,82942,802,00032,102,00029,655,040
8Oct 16, 2021 07:0816,650263,622,83643,107,00031,817,00029,548,544
9Oct 16, 2021 07:0816,789262,377,03339,247,00036,303,00029,655,040
10Oct 16, 2021 07:0816,797269,708,67041,993,00033,594,00029,736,960
11Oct 16, 2021 07:0816,877271,259,52344,303,00031,645,00029,581,312
12Oct 16, 2021 07:0816,923268,766,67945,048,00031,104,00029,667,328