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 listDec 4, 2024 08:03NoSIMD_C#NoSIMD_C#Score: 27,521Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 4, 2024 08:0327,259313,252,87790,385,00032,280,00029,691,904
2Dec 4, 2024 08:0327,277313,418,46085,710,00037,035,00029,790,208
3Dec 4, 2024 08:0327,296310,582,68385,673,00037,159,00029,663,232
4Dec 4, 2024 08:0327,407315,066,74586,638,00036,693,00029,696,000
5Dec 4, 2024 08:0327,521319,624,85686,379,00037,465,00029,687,808
6Dec 4, 2024 08:0327,996329,932,68396,403,00029,578,00029,663,232
7Dec 4, 2024 08:0327,999335,778,53986,097,00039,898,00029,655,040
8Dec 4, 2024 08:0328,020335,061,30392,850,00033,242,00029,650,944
9Dec 4, 2024 08:0328,137323,186,03791,074,00035,541,00029,474,816