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 09:46tirochkintirochkinScore: 44,498Success
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 09:4637,602225,641,437169,210,08302,232,320
2Oct 11, 2021 09:4637,809223,252,696170,141,08702,224,128
3Oct 11, 2021 09:4637,872231,055,539170,422,28802,228,224
4Oct 11, 2021 09:4644,301375,912,636148,519,00050,835,00029,696,000
5Oct 11, 2021 09:4644,434386,712,306150,703,00049,249,00029,626,368
6Oct 11, 2021 09:4644,462376,438,393150,059,00050,019,00029,782,016
7Oct 11, 2021 09:4644,498381,432,041161,040,00039,200,00029,560,832
8Oct 11, 2021 09:4644,535382,496,474152,068,00048,339,00029,691,904
9Oct 11, 2021 09:4644,581381,178,538146,603,00054,011,00029,597,696
10Oct 11, 2021 09:4644,582385,437,927144,323,00056,296,00029,593,600
11Oct 11, 2021 09:4644,587380,958,500151,270,00049,372,00029,626,368
12Oct 11, 2021 09:4644,597382,633,775148,151,00052,536,00029,724,672