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:48Yuriy LyfenkoYuriy LyfenkoScore: 15,511Success
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:488,30999,736,68137,391,44902,240,512
2Oct 11, 2021 01:488,312119,438,77837,402,77202,260,992
3Oct 11, 2021 01:488,315121,392,50537,418,12502,244,608
4Oct 11, 2021 01:4815,438260,235,16039,697,00029,772,00029,544,448
5Oct 11, 2021 01:4815,475256,047,01339,639,00029,997,00029,655,040
6Oct 11, 2021 01:4815,496263,304,85040,767,00028,966,00029,503,488
7Oct 11, 2021 01:4815,511262,837,90541,654,00028,144,00029,675,520
8Oct 11, 2021 01:4815,524256,941,61536,406,00033,454,00029,708,288
9Oct 11, 2021 01:4815,542257,234,02334,969,00034,969,00029,708,288
10Oct 11, 2021 01:4815,687262,902,31937,373,00033,220,00029,544,448
11Oct 11, 2021 01:4815,718262,059,56639,173,00031,556,00029,708,288
12Oct 11, 2021 01:4815,815260,493,19240,510,00030,656,00029,687,808