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:52Andrey TsvetkovAndrey TsvetkovScore: 26,236Success
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:5218,573139,018,79283,577,57402,232,320
2Oct 10, 2021 17:5218,601137,742,56683,704,60002,228,224
3Oct 10, 2021 17:5218,623144,253,25383,801,68602,220,032
4Oct 10, 2021 17:5226,148304,322,43285,948,00031,719,00029,626,368
5Oct 10, 2021 17:5226,150305,946,09984,198,00033,476,00029,691,904
6Oct 10, 2021 17:5226,226312,419,08086,685,00031,332,00029,757,440
7Oct 10, 2021 17:5226,236303,503,83185,209,00032,851,00029,757,440
8Oct 10, 2021 17:5226,244306,385,14683,068,00035,028,00029,573,120
9Oct 10, 2021 17:5226,282311,384,88179,809,00038,462,00029,634,560
10Oct 10, 2021 17:5226,361306,948,45681,372,00037,254,00029,700,096
11Oct 10, 2021 17:5226,412316,648,45488,081,00030,775,00029,782,016
12Oct 10, 2021 17:5226,497308,831,43580,805,00038,431,00029,728,768