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 listJun 14, 2024 20:54джулисджулисScore: 111,563Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 20:54104,206528,277,455468,925,68802,252,800
2Jun 14, 2024 20:54104,293524,859,058469,317,14002,260,992
3Jun 14, 2024 20:54104,379534,157,362469,705,05302,252,800
4Jun 14, 2024 20:54111,512691,840,110450,639,00051,164,00029,724,672
5Jun 14, 2024 20:54111,514692,910,678454,739,00047,076,00029,491,200
6Jun 14, 2024 20:54111,542686,434,424456,217,00045,723,00029,720,576
7Jun 14, 2024 20:54111,563692,700,491457,120,00044,913,00029,724,672
8Jun 14, 2024 20:54111,584691,625,013457,793,00044,335,00029,720,576
9Jun 14, 2024 20:54111,606685,313,991439,449,00062,778,00029,655,040
10Jun 14, 2024 20:54111,650684,839,020452,489,00049,936,00029,659,136
11Jun 14, 2024 20:54111,700686,986,966446,459,00056,190,00029,720,576
12Jun 14, 2024 20:54111,761685,795,178445,391,00057,533,00029,577,216