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 6, 2023 18:09Bernard TeoBernard TeoScore: 24,317Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2023 18:0914,626130,067,98565,817,62502,285,568
2May 6, 2023 18:0915,148127,814,17268,165,62302,269,184
3May 6, 2023 18:0915,150131,885,62068,173,12002,277,376
4May 6, 2023 18:0923,780295,235,08265,343,00041,668,00029,556,736
5May 6, 2023 18:0924,211311,577,16078,245,00030,703,00029,560,832
6May 6, 2023 18:0924,212307,412,35378,119,00030,836,00029,667,328
7May 6, 2023 18:0924,317306,996,29877,556,00031,872,00029,532,160
8May 6, 2023 18:0924,388310,148,89873,165,00036,582,00029,634,560
9May 6, 2023 18:0924,408310,103,39672,634,00037,203,00029,597,696
10May 6, 2023 18:0924,511312,514,39072,876,00037,422,00029,634,560
11May 6, 2023 18:0924,529307,761,02277,975,00032,405,00029,601,792
12May 6, 2023 18:0924,545306,794,04376,551,00033,901,00029,634,560