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 23:21Vitaliy F.Vitaliy F.Score: 49,442Success
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 23:2139,743252,870,113178,841,52602,269,184
2Oct 11, 2021 23:2139,751237,109,388178,879,49102,260,992
3Oct 11, 2021 23:2139,768241,624,510178,957,58802,269,184
4Oct 11, 2021 23:2149,228420,016,438188,297,00033,228,00029,675,520
5Oct 11, 2021 23:2149,256422,316,301183,861,00037,793,00029,601,792
6Oct 11, 2021 23:2149,384426,593,394194,577,00027,650,00029,708,288
7Oct 11, 2021 23:2149,442419,012,415188,632,00033,857,00029,741,056
8Oct 11, 2021 23:2149,460423,212,426180,036,00042,536,00029,769,728
9Oct 11, 2021 23:2149,471421,814,106193,005,00029,614,00029,675,520
10Oct 11, 2021 23:2149,483423,383,694192,717,00029,956,00029,642,752
11Oct 11, 2021 23:2149,515425,201,739182,216,00040,602,00029,659,136
12Oct 11, 2021 23:2149,692424,445,026194,760,00028,853,00029,655,040