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 15, 2021 19:07Yuriy LyfenkoYuriy LyfenkoScore: 13,158Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:076,07380,139,49727,328,03302,248,704
2Oct 15, 2021 19:076,07588,964,63627,336,73802,252,800
3Oct 15, 2021 19:076,08099,479,34927,360,09502,244,608
4Oct 15, 2021 19:0713,030250,958,88933,315,00025,319,00029,675,520
5Oct 15, 2021 19:0713,038248,789,18626,302,00032,371,00029,663,232
6Oct 15, 2021 19:0713,158252,962,15926,542,00032,667,00029,679,616
7Oct 15, 2021 19:0713,158255,338,27230,187,00029,026,00029,708,288
8Oct 15, 2021 19:0713,181251,126,78827,056,00032,260,00029,573,120
9Oct 15, 2021 19:0713,300251,298,42426,828,00033,020,00029,511,680
10Oct 15, 2021 19:0713,338250,275,47924,599,00035,423,00029,704,192
11Oct 15, 2021 19:0713,515253,777,85325,340,00035,476,00029,724,672
12Oct 15, 2021 19:0713,640258,161,57929,074,00032,304,00029,663,232