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 13:49Ilya AniskovetsIlya AniskovetsScore: 14,605Success
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 13:497,08690,858,12031,887,81502,269,184
2Oct 16, 2021 13:497,105115,451,28731,972,35502,281,472
3Oct 16, 2021 13:497,16490,328,47032,237,21002,277,376
4Oct 16, 2021 13:4914,382252,815,96534,590,00030,127,00029,761,536
5Oct 16, 2021 13:4914,539255,027,30231,155,00034,270,00029,663,232
6Oct 16, 2021 13:4914,596255,078,00629,856,00035,827,00029,757,440
7Oct 16, 2021 13:4914,605253,588,43331,802,00033,922,00029,630,464
8Oct 16, 2021 13:4914,629250,754,76332,376,00033,455,00029,544,448
9Oct 16, 2021 13:4914,698262,003,95232,545,00033,594,00029,544,448
10Oct 16, 2021 13:4914,835256,549,35429,992,00036,765,00029,630,464
11Oct 16, 2021 13:4914,875258,368,82032,921,00034,018,00029,724,672
12Oct 16, 2021 13:4914,993255,745,49434,898,00032,571,00029,560,832