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 3, 2024 16:41Joad NacerJoad NacerScore: 25,856Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 16:4120,429155,686,46391,928,57602,285,568
2May 3, 2024 16:4120,450156,007,40692,025,84502,289,664
3May 3, 2024 16:4120,544152,736,95492,447,25602,285,568
4May 3, 2024 16:4125,525308,653,68551,165,00063,696,00029,618,176
5May 3, 2024 16:4125,669302,293,27950,088,00065,422,00029,556,736
6May 3, 2024 16:4125,715305,040,84748,300,00067,419,00029,679,616
7May 3, 2024 16:4125,856300,508,21947,330,00069,023,00029,679,616
8May 3, 2024 16:4125,893301,468,59349,060,00067,457,00029,585,408
9May 3, 2024 16:4126,008310,223,81552,997,00064,038,00029,691,904
10May 3, 2024 16:4126,068314,201,84149,828,00067,476,00029,560,832
11May 3, 2024 16:4126,160307,507,89851,841,00065,881,00029,536,256
12May 3, 2024 16:4126,215307,363,66146,796,00071,170,00029,585,408