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 11:54Andrey TsvetkovAndrey TsvetkovScore: 101,670Success
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 11:5437,469228,004,745168,609,16402,187,264
2Oct 10, 2021 11:5437,602230,591,816169,210,16302,310,144
3Oct 10, 2021 11:5437,747229,266,025169,860,18702,191,360
4Oct 10, 2021 11:5492,028486,413,842414,127,82502,224,128
5Oct 10, 2021 11:5492,205479,455,222414,924,49502,203,648
6Oct 10, 2021 11:5492,349477,459,361415,570,56502,199,552
7Oct 10, 2021 11:54101,666634,805,947406,558,00050,939,00029,646,848
8Oct 10, 2021 11:54101,670641,196,012391,558,00065,957,00029,614,080
9Oct 10, 2021 11:54101,679644,125,248394,975,00062,580,00029,679,616
10Oct 10, 2021 11:54101,815638,255,171405,776,00052,391,00029,679,616
11Oct 10, 2021 11:54101,926642,181,825406,849,00051,820,00029,470,720
12Oct 10, 2021 11:54102,046640,794,918405,668,00053,540,00029,761,536
13Oct 10, 2021 11:54102,203647,305,505415,096,00044,817,00029,618,176
14Oct 10, 2021 11:54102,247644,506,432403,097,00057,013,00029,777,920
15Oct 10, 2021 11:54102,341644,351,660411,270,00049,266,00029,593,600