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:05Yuriy LyfenkoYuriy LyfenkoScore: 17,348Success
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:0510,070121,931,96745,315,28902,252,800
2Oct 11, 2021 01:0510,070107,246,22045,316,04102,248,704
3Oct 11, 2021 01:0510,071110,981,11845,317,69002,256,896
4Oct 11, 2021 01:0517,203263,476,28642,676,00034,736,00029,519,872
5Oct 11, 2021 01:0517,208263,921,19944,396,00033,039,00029,667,328
6Oct 11, 2021 01:0517,224263,548,08743,724,00033,786,00029,708,288
7Oct 11, 2021 01:0517,348271,137,95244,608,00033,456,00029,474,816
8Oct 11, 2021 01:0517,396264,224,32447,183,00031,098,00029,544,448
9Oct 11, 2021 01:0517,449268,650,32844,869,00033,652,00029,704,192
10Oct 11, 2021 01:0517,480268,111,84844,247,00034,414,00029,667,328
11Oct 11, 2021 01:0517,536289,142,86643,402,00035,511,00029,708,288
12Oct 11, 2021 01:0517,724279,065,48847,226,00032,533,00029,564,928