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 02:19Yuriy LyfenkoYuriy LyfenkoScore: 15,461Success
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 02:198,19994,119,74036,896,85802,248,704
2Oct 11, 2021 02:198,200130,544,39936,900,10302,244,608
3Oct 11, 2021 02:198,200106,291,14536,901,07002,252,800
4Oct 11, 2021 02:1915,219261,614,62838,048,00030,438,00029,708,288
5Oct 11, 2021 02:1915,375256,609,06635,080,00034,106,00029,708,288
6Oct 11, 2021 02:1915,426256,265,06238,566,00030,853,00029,667,328
7Oct 11, 2021 02:1915,461254,702,63536,775,00032,800,00029,716,480
8Oct 11, 2021 02:1915,524253,742,21639,918,00029,938,00029,708,288
9Oct 11, 2021 02:1915,576263,128,37542,296,00027,794,00029,544,448
10Oct 11, 2021 02:1915,580261,902,44139,305,00030,807,00029,675,520
11Oct 11, 2021 02:1915,652292,351,58642,977,00027,457,00029,708,288
12Oct 11, 2021 02:1915,702265,282,59337,967,00032,694,00029,679,616