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 01:47Yuriy LyfenkoYuriy LyfenkoScore: 15,485Success
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 01:478,30999,252,73737,389,77802,260,992
2Oct 11, 2021 01:478,312106,696,07637,402,79302,252,800
3Oct 11, 2021 01:478,313102,620,75037,410,51402,252,800
4Oct 11, 2021 01:4715,396253,192,28336,678,00032,603,00029,736,960
5Oct 11, 2021 01:4715,423257,544,69439,660,00029,745,00029,708,288
6Oct 11, 2021 01:4715,466254,829,25537,320,00032,277,00029,556,736
7Oct 11, 2021 01:4715,485253,135,98237,365,00032,316,00029,708,288
8Oct 11, 2021 01:4715,552261,684,85939,992,00029,994,00029,478,912
9Oct 11, 2021 01:4715,599255,182,52235,579,00034,617,00029,573,120
10Oct 11, 2021 01:4715,722262,612,13141,753,00028,995,00029,675,520
11Oct 11, 2021 01:4715,732257,328,15538,615,00032,179,00029,544,448
12Oct 11, 2021 01:4715,760263,421,74243,734,00027,186,00029,675,520