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:51Yuriy LyfenkoYuriy LyfenkoScore: 15,489Success
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:518,18087,742,47636,808,83502,256,896
2Oct 11, 2021 01:518,196120,338,62636,882,36102,244,608
3Oct 11, 2021 01:518,198112,370,37536,891,31302,252,800
4Oct 11, 2021 01:5115,416264,751,02635,707,00033,667,00029,708,288
5Oct 11, 2021 01:5115,426259,428,85835,211,00034,205,00029,708,288
6Oct 11, 2021 01:5115,436264,410,56939,855,00029,606,00029,638,656
7Oct 11, 2021 01:5115,489257,122,68137,532,00032,170,00029,659,136
8Oct 11, 2021 01:5115,502262,821,13833,910,00035,847,00029,667,328
9Oct 11, 2021 01:5115,520260,563,75836,438,00033,401,00029,708,288
10Oct 11, 2021 01:5115,581263,680,11838,151,00031,965,00029,671,424
11Oct 11, 2021 01:5115,688259,641,58138,607,00031,988,00029,741,056
12Oct 11, 2021 01:5115,933259,741,10941,825,00029,875,00029,667,328