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:16Yuriy LyfenkoYuriy LyfenkoScore: 10,243Success
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:163,06367,533,35413,782,79102,248,704
2May 10, 2023 01:163,06579,968,48413,793,43202,244,608
3May 10, 2023 01:163,07363,580,44913,830,08402,252,800
4May 10, 2023 01:1610,176233,619,64210,774,00035,016,00029,675,520
5May 10, 2023 01:1610,232235,296,51216,061,00029,981,00029,708,288
6May 10, 2023 01:1610,235236,924,51614,017,00032,040,00029,544,448
7May 10, 2023 01:1610,243234,580,61712,570,00033,522,00029,507,584
8May 10, 2023 01:1610,262233,028,99913,051,00033,130,00029,712,384
9May 10, 2023 01:1610,281234,143,68111,347,00034,916,00029,548,544
10May 10, 2023 01:1610,403242,806,10218,479,00028,335,00029,544,448
11May 10, 2023 01:1610,453239,659,77914,915,00032,125,00029,544,448
12May 10, 2023 01:1610,574244,366,85115,087,00032,497,00029,663,232