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 10, 2021 17:55Andrey TsvetkovAndrey TsvetkovScore: 26,262Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 17:5518,561141,307,07183,525,65502,240,512
2Oct 10, 2021 17:5518,592159,271,11783,665,43902,248,704
3Oct 10, 2021 17:5518,626146,471,76783,815,19102,256,896
4Oct 10, 2021 17:5526,112302,181,52487,347,00030,155,00029,589,504
5Oct 10, 2021 17:5526,224307,281,38181,552,00036,458,00029,638,656
6Oct 10, 2021 17:5526,227304,881,68587,981,00030,042,00029,638,656
7Oct 10, 2021 17:5526,262308,406,59284,266,00033,912,00029,569,024
8Oct 10, 2021 17:5526,278305,850,79683,886,00034,363,00029,638,656
9Oct 10, 2021 17:5526,283309,415,23384,627,00033,647,00029,499,392
10Oct 10, 2021 17:5526,300306,689,17289,035,00029,316,00029,638,656
11Oct 10, 2021 17:5526,343310,012,50387,573,00030,970,00029,581,312
12Oct 10, 2021 17:5526,382309,170,30585,970,00032,750,00029,732,864