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 listMay 7, 2023 10:09Bernard TeoBernard TeoScore: 17,455Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 10:099,057104,423,48840,757,60802,269,184
2May 7, 2023 10:099,087107,837,53140,889,55402,273,280
3May 7, 2023 10:099,202106,742,24441,408,88002,273,280
4May 7, 2023 10:0917,275263,527,61338,364,00039,373,00029,675,520
5May 7, 2023 10:0917,358264,585,75240,501,00037,608,00029,556,736
6May 7, 2023 10:0917,411271,176,29940,178,00038,170,00029,556,736
7May 7, 2023 10:0917,455272,198,48638,832,00039,714,00029,655,040
8May 7, 2023 10:0917,770270,720,53446,788,00033,177,00029,585,408
9May 7, 2023 10:0917,828279,070,28143,365,00036,861,00029,687,808
10May 7, 2023 10:0917,848275,116,97051,366,00028,951,00029,675,520
11May 7, 2023 10:0917,954281,867,90847,045,00033,749,00029,720,576
12May 7, 2023 10:0917,997285,569,29940,016,00040,969,00029,724,672