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 05:38Andrey TsvetkovAndrey TsvetkovScore: 26,160Success
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 05:3818,514149,631,47883,313,73902,232,320
2Oct 11, 2021 05:3818,521144,468,70383,345,81102,232,320
3Oct 11, 2021 05:3818,562141,356,71183,527,68902,236,416
4Oct 11, 2021 05:3825,982301,549,10887,957,00028,961,00029,667,328
5Oct 11, 2021 05:3826,070302,634,02483,223,00034,091,00029,638,656
6Oct 11, 2021 05:3826,149314,167,94685,211,00032,461,00029,675,520
7Oct 11, 2021 05:3826,160307,262,41183,512,00034,210,00029,638,656
8Oct 11, 2021 05:3826,188306,402,14888,920,00028,926,00029,573,120
9Oct 11, 2021 05:3826,203308,210,73788,706,00029,208,00029,638,656
10Oct 11, 2021 05:3826,223316,483,19579,969,00038,034,00029,605,888
11Oct 11, 2021 05:3826,262303,668,19682,426,00035,751,00029,638,656
12Oct 11, 2021 05:3826,305315,069,51283,678,00034,695,00029,736,960