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:13NoSIMD_C#NoSIMD_C#Score: 68,294Success
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:1367,944498,991,363224,024,00081,725,00029,741,056
2Dec 3, 2024 07:1368,036507,689,477224,915,00081,246,00029,769,728
3Dec 3, 2024 07:1368,075500,546,936222,968,00083,370,00029,528,064
4Dec 3, 2024 07:1368,113509,123,752222,094,00084,415,00029,765,632
5Dec 3, 2024 07:1368,294520,671,820235,357,00071,968,00029,560,832
6Dec 3, 2024 07:1368,312498,057,426217,409,00089,997,00029,548,544
7Dec 3, 2024 07:1368,654535,285,535230,025,00078,920,00029,507,584
8Dec 3, 2024 07:1368,719516,892,436225,525,00083,710,00029,626,368
9Dec 3, 2024 07:1370,684517,095,250249,920,00068,160,00029,626,368