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 listMay 10, 2023 01:09Yuriy LyfenkoYuriy LyfenkoScore: 10,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:093,06680,550,51613,797,42602,252,800
2May 10, 2023 01:093,07055,423,27913,817,23202,252,800
3May 10, 2023 01:093,07464,392,63613,830,97102,236,416
4May 10, 2023 01:0910,376240,335,92914,453,00032,241,00029,544,448
5May 10, 2023 01:0910,392236,735,83613,216,00033,550,00029,708,288
6May 10, 2023 01:0910,408237,684,60114,497,00032,340,00029,675,520
7May 10, 2023 01:0910,431244,025,77115,283,00031,657,00029,544,448
8May 10, 2023 01:0910,440244,060,83012,527,00034,451,00029,663,232
9May 10, 2023 01:0910,449235,727,00712,735,00034,286,00029,708,288
10May 10, 2023 01:0910,561240,406,92818,722,00028,803,00029,741,056
11May 10, 2023 01:0910,565240,837,23114,373,00033,168,00029,708,288
12May 10, 2023 01:0910,797243,807,75217,070,00031,515,00029,675,520