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 01:46Yuriy LyfenkoYuriy LyfenkoScore: 15,611Success
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 01:468,394106,739,97937,775,22202,256,896
2Oct 11, 2021 01:468,395106,364,09737,777,14302,252,800
3Oct 11, 2021 01:468,408100,156,92937,836,48602,260,992
4Oct 11, 2021 01:4615,493255,471,12337,461,00032,258,00029,708,288
5Oct 11, 2021 01:4615,531267,469,70735,944,00033,947,00029,474,816
6Oct 11, 2021 01:4615,584260,235,56740,544,00029,586,00029,679,616
7Oct 11, 2021 01:4615,611265,431,36638,795,00031,455,00029,663,232
8Oct 11, 2021 01:4615,641259,076,62237,818,00032,565,00029,708,288
9Oct 11, 2021 01:4615,661265,348,61737,251,00033,224,00029,741,056
10Oct 11, 2021 01:4615,680261,463,81437,355,00033,204,00029,544,448
11Oct 11, 2021 01:4615,682266,679,82038,397,00032,170,00029,675,520
12Oct 11, 2021 01:4615,704261,628,11135,831,00034,835,00029,708,288