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 10, 2023 19:38Victor MuñozVictor MuñozScore: 109,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 19:38102,159529,846,368459,716,96102,191,360
2May 10, 2023 19:38102,169513,675,872459,758,65402,195,456
3May 10, 2023 19:38102,244519,312,730460,096,94602,183,168
4May 10, 2023 19:38109,362678,094,226452,555,00039,573,00029,732,864
5May 10, 2023 19:38109,454679,881,522433,081,00059,461,00029,732,864
6May 10, 2023 19:38109,488676,669,893435,031,00057,666,00029,552,640
7May 10, 2023 19:38109,498679,992,479446,199,00046,542,00029,646,848
8May 10, 2023 19:38109,528677,484,522448,255,00044,622,00029,597,696
9May 10, 2023 19:38109,546679,360,455446,340,00046,617,00029,700,096
10May 10, 2023 19:38109,578677,955,525452,343,00040,760,00029,511,680
11May 10, 2023 19:38109,608682,895,656441,105,00052,130,00029,564,928
12May 10, 2023 19:38109,721685,790,787442,771,00050,973,00029,728,768