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:03Yuriy LyfenkoYuriy LyfenkoScore: 17,446Success
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:038,267106,543,20637,202,26002,260,992
2Oct 11, 2021 02:038,391105,099,98037,761,60002,252,800
3Oct 11, 2021 02:038,504106,439,73738,266,11802,244,608
4Oct 11, 2021 02:0317,274271,203,00438,466,00039,267,00029,503,488
5Oct 11, 2021 02:0317,358284,186,51344,634,00033,476,00029,708,288
6Oct 11, 2021 02:0317,368272,176,55644,810,00033,347,00029,667,328
7Oct 11, 2021 02:0317,446267,031,58942,731,00035,775,00029,675,520
8Oct 11, 2021 02:0317,574281,927,14246,783,00032,302,00029,675,520
9Oct 11, 2021 02:0317,802283,128,08143,136,00036,974,00029,663,232
10Oct 11, 2021 02:0317,802280,799,45441,539,00038,572,00029,544,448
11Oct 11, 2021 02:0317,847276,523,11834,660,00045,650,00029,638,656
12Oct 11, 2021 02:0317,860284,355,10936,211,00044,160,00029,569,024