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,507Success
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,288104,281,27137,295,84102,244,608
2Oct 11, 2021 01:518,28894,416,07037,297,16002,256,896
3Oct 11, 2021 01:518,291118,110,34037,307,44502,252,800
4Oct 11, 2021 01:5115,450255,758,78637,831,00031,696,00029,708,288
5Oct 11, 2021 01:5115,459261,978,61537,945,00031,621,00029,675,520
6Oct 11, 2021 01:5115,482261,296,17236,883,00032,785,00029,708,288
7Oct 11, 2021 01:5115,507257,887,89134,413,00035,368,00029,708,288
8Oct 11, 2021 01:5115,514265,682,37837,511,00032,301,00029,736,960
9Oct 11, 2021 01:5115,567257,176,04936,594,00033,457,00029,663,232
10Oct 11, 2021 01:5115,574267,031,33935,041,00035,041,00029,667,328
11Oct 11, 2021 01:5115,826262,888,22436,627,00034,592,00029,671,424
12Oct 11, 2021 01:5115,884264,312,37640,689,00030,791,00029,704,192