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:13NoSIMD_C#NoSIMD_C#Score: 25,242Success
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:1324,988299,560,53380,787,00031,660,00029,757,440
2Dec 4, 2024 08:1325,138307,103,49675,752,00037,371,00029,696,000
3Dec 4, 2024 08:1325,168304,136,05581,369,00031,888,00029,745,152
4Dec 4, 2024 08:1325,203304,378,60478,986,00034,429,00029,696,000
5Dec 4, 2024 08:1325,242305,750,59573,381,00040,208,00029,732,864
6Dec 4, 2024 08:1325,247308,389,97283,314,00030,296,00029,650,944
7Dec 4, 2024 08:1325,429308,864,00676,287,00038,143,00029,601,792
8Dec 4, 2024 08:1325,690319,390,46881,975,00033,631,00029,650,944
9Dec 4, 2024 08:1326,150316,724,99477,391,00040,285,00029,671,424