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 12:31tirochkintirochkinScore: 40,732Success
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 12:3133,671221,688,507151,519,97702,220,032
2Oct 11, 2021 12:3133,679211,275,849151,553,66102,220,032
3Oct 11, 2021 12:3133,701220,684,636151,653,43602,224,128
4Oct 11, 2021 12:3140,545360,686,957146,801,00035,651,00029,552,640
5Oct 11, 2021 12:3140,596359,556,272135,762,00046,918,00029,544,448
6Oct 11, 2021 12:3140,669362,701,811129,591,00053,419,00029,650,944
7Oct 11, 2021 12:3140,732364,448,357131,517,00051,778,00029,601,792
8Oct 11, 2021 12:3140,748364,399,350139,519,00043,848,00029,732,864
9Oct 11, 2021 12:3140,844369,395,872137,344,00046,454,00029,560,832
10Oct 11, 2021 12:3140,851365,770,064137,871,00045,957,00029,630,464
11Oct 11, 2021 12:3140,955361,936,315129,199,00055,099,00029,757,440
12Oct 11, 2021 12:3140,961366,931,769138,983,00045,342,00029,630,464