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 15, 2021 14:51Yuriy LyfenkoYuriy LyfenkoScore: 15,469Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 14:518,149101,934,12936,670,32002,265,088
2Oct 15, 2021 14:518,151111,723,66336,679,43402,256,896
3Oct 15, 2021 14:518,15496,428,61836,694,27102,248,704
4Oct 15, 2021 14:5115,369261,825,21138,648,00030,511,00029,675,520
5Oct 15, 2021 14:5115,406260,472,25234,176,00035,152,00029,708,288
6Oct 15, 2021 14:5115,466261,923,95436,312,00033,286,00029,577,216
7Oct 15, 2021 14:5115,469254,623,52336,319,00033,292,00029,663,232
8Oct 15, 2021 14:5115,507262,537,33736,407,00033,373,00029,708,288
9Oct 15, 2021 14:5115,533257,280,04135,442,00034,458,00029,544,448
10Oct 15, 2021 14:5115,556264,055,04736,030,00033,972,00029,683,712
11Oct 15, 2021 14:5115,593263,044,99436,610,00033,559,00029,544,448
12Oct 15, 2021 14:5115,743268,545,25136,919,00033,926,00029,544,448