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 02:03Yuriy LyfenkoYuriy LyfenkoScore: 15,635Success
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 02:038,339593,710,65537,527,73602,248,704
2Oct 11, 2021 02:038,343610,910,39937,544,57902,252,800
3Oct 11, 2021 02:038,345594,973,31637,551,89202,244,608
4Oct 11, 2021 02:0315,523758,181,70239,293,00030,561,00029,728,768
5Oct 11, 2021 02:0315,608761,508,88136,646,00033,592,00029,708,288
6Oct 11, 2021 02:0315,614761,809,06739,996,00030,267,00029,663,232
7Oct 11, 2021 02:0315,635764,415,35243,388,00026,971,00029,741,056
8Oct 11, 2021 02:0315,640763,043,06538,388,00031,990,00029,581,312
9Oct 11, 2021 02:0315,642751,782,09035,676,00034,712,00029,753,344
10Oct 11, 2021 02:0315,663760,498,33137,315,00033,168,00029,757,440
11Oct 11, 2021 02:0315,796762,921,86840,461,00030,619,00029,573,120
12Oct 11, 2021 02:0315,963767,605,39037,393,00034,441,00029,700,096