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 11, 2021 00:57Yuriy LyfenkoYuriy LyfenkoScore: 16,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:579,767106,036,21643,950,81002,240,512
2Oct 11, 2021 00:579,783114,599,53344,022,28302,252,800
3Oct 11, 2021 00:579,784104,589,16244,026,63102,252,800
4Oct 11, 2021 00:5716,746266,604,28545,436,00029,921,00029,712,384
5Oct 11, 2021 00:5716,800261,391,15041,236,00034,363,00029,671,424
6Oct 11, 2021 00:5716,866263,826,95739,355,00036,544,00029,507,584
7Oct 11, 2021 00:5716,908267,932,27240,452,00035,636,00029,708,288
8Oct 11, 2021 00:5716,947263,966,57944,921,00031,340,00029,708,288
9Oct 11, 2021 00:5716,972268,882,84342,770,00033,605,00029,548,544
10Oct 11, 2021 00:5717,040271,072,79342,941,00033,739,00029,540,352
11Oct 11, 2021 00:5717,080273,335,74447,471,00029,387,00029,736,960
12Oct 11, 2021 00:5717,147270,690,19852,272,00024,891,00029,577,216