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 09:45Bernard TeoBernard TeoScore: 13,559Success
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 09:454,51081,056,03720,293,84602,260,992
2May 7, 2023 09:454,55693,865,22520,499,93502,269,184
3May 7, 2023 09:454,58785,354,70320,640,74802,269,184
4May 7, 2023 09:4513,335245,984,23630,942,00029,067,00029,675,520
5May 7, 2023 09:4513,467244,492,20026,824,00033,779,00029,523,968
6May 7, 2023 09:4513,480246,263,12130,329,00030,329,00029,655,040
7May 7, 2023 09:4513,559247,488,05534,028,00026,987,00029,519,872
8May 7, 2023 09:4513,764258,358,43327,395,00034,541,00029,556,736
9May 7, 2023 09:4513,939260,465,71625,292,00037,433,00029,556,736
10May 7, 2023 09:4513,971259,936,73029,339,00033,530,00029,679,616
11May 7, 2023 09:4514,068260,885,43124,116,00039,188,00029,536,256
12May 7, 2023 09:4514,173262,674,62320,911,00042,868,00029,556,736