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 22:56Joad NacerJoad NacerScore: 24,871Success
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 22:5618,884145,376,68484,979,92002,285,568
2May 4, 2024 22:5618,918147,996,74385,129,55002,285,568
3May 4, 2024 22:5618,982162,812,55685,417,21802,293,760
4May 4, 2024 22:5624,465304,827,72048,230,00061,861,00029,618,176
5May 4, 2024 22:5624,804300,693,37850,115,00061,505,00029,569,024
6May 4, 2024 22:5624,845303,056,42045,550,00066,254,00029,569,024
7May 4, 2024 22:5624,871303,905,77045,785,00066,133,00029,650,944
8May 4, 2024 22:5624,892304,335,63947,554,00064,462,00029,667,328
9May 4, 2024 22:5624,897299,723,15549,428,00062,609,00029,704,192
10May 4, 2024 22:5625,033299,322,54546,323,00066,327,00029,650,944
11May 4, 2024 22:5625,049303,521,63249,596,00063,123,00029,593,600
12May 4, 2024 22:5625,361312,078,32154,634,00059,490,00029,655,040