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 4, 2024 09:55Joad NacerJoad NacerScore: 25,126Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 09:5518,939151,201,36085,224,99702,285,568
2May 4, 2024 09:5518,946155,392,99185,255,23502,297,856
3May 4, 2024 09:5518,975163,700,13385,386,93002,297,856
4May 4, 2024 09:5524,845299,842,92342,636,00069,165,00029,675,520
5May 4, 2024 09:5525,008299,553,26146,220,00066,316,00029,564,928
6May 4, 2024 09:5525,117303,799,39947,095,00065,933,00029,655,040
7May 4, 2024 09:5525,126307,127,98946,255,00066,813,00029,593,600
8May 4, 2024 09:5525,158298,778,58344,689,00068,523,00029,679,616
9May 4, 2024 09:5525,259304,966,78546,081,00067,586,00029,749,248
10May 4, 2024 09:5525,428305,442,79649,192,00065,233,00029,720,576
11May 4, 2024 09:5525,501308,390,63847,634,00067,120,00029,675,520
12May 4, 2024 09:5525,557311,044,78046,624,00068,383,00029,679,616