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 3, 2024 07:28NoSIMD_C#NoSIMD_C#Score: 67,118Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 3, 2024 07:2866,326494,957,675222,601,00075,864,00029,769,728
2Dec 3, 2024 07:2866,528492,076,628228,874,00070,501,00029,761,536
3Dec 3, 2024 07:2866,898515,613,482225,030,00076,010,00029,777,920
4Dec 3, 2024 07:2867,033502,409,896232,499,00069,148,00029,548,544
5Dec 3, 2024 07:2867,118501,599,148233,896,00068,135,00029,761,536
6Dec 3, 2024 07:2867,246507,081,005227,458,00075,151,00029,638,656
7Dec 3, 2024 07:2867,593506,905,453224,176,00079,992,00029,536,256
8Dec 3, 2024 07:2867,674506,163,313239,135,00065,396,00029,716,480
9Dec 3, 2024 07:2867,787513,353,811222,024,00083,017,00029,523,968