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 28, 2024 14:55AnSaAnSaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 14:5600000Error: expected "4809500462417286 ", got "4809285714052486"
2Jun 28, 2024 14:5515,764136,475,64270,938,76802,281,472
3Jun 28, 2024 14:5515,773144,489,71770,977,27002,269,184
4Jun 28, 2024 14:5515,778137,210,81070,999,19302,285,568
5Jun 28, 2024 14:5523,975295,536,35370,747,00037,142,00029,663,232
6Jun 28, 2024 14:5524,592311,736,54968,546,00042,119,00029,642,752
7Jun 28, 2024 14:5524,636305,401,48476,672,00034,191,00029,597,696
8Jun 28, 2024 14:5524,665308,998,01571,460,00039,531,00029,560,832
9Jun 28, 2024 14:5524,672314,688,84573,690,00037,336,00029,614,080
10Jun 28, 2024 14:5524,700312,142,43275,933,00035,215,00029,495,296
11Jun 28, 2024 14:5524,716313,457,66882,068,00029,155,00029,630,464
12Jun 28, 2024 14:5524,749305,737,05379,104,00032,266,00029,552,640
13Jun 28, 2024 14:5524,764310,149,08376,817,00034,621,00029,528,064