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 5, 2024 05:19NoSIMD_C#NoSIMD_C#Score: 18,861Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 08:0010,63572,477,66845,863,0001,994,0002,265,088
2Dec 13, 2024 08:0010,64070,307,80747,881,00002,273,280
3Dec 13, 2024 08:0010,64075,094,83247,881,00002,527,232
4Dec 13, 2024 08:0010,64077,163,25245,885,0001,995,0002,273,280
5Dec 13, 2024 08:0010,64473,752,32944,904,0002,993,0002,273,280
6Dec 13, 2024 08:0010,64572,355,98645,907,0001,995,0002,519,040
7Dec 13, 2024 08:0010,68675,763,82146,082,0002,003,0002,523,136
8Dec 13, 2024 08:0010,69981,791,93546,140,0002,006,0002,260,992
9Dec 13, 2024 08:0010,80775,512,49146,606,0002,026,0002,338,816
10Dec 5, 2024 05:1918,861269,051,40544,994,00039,881,00029,548,544
11Dec 5, 2024 05:1919,093277,070,81048,392,00037,528,00029,495,296
12Dec 5, 2024 05:1919,174282,918,20642,162,00044,123,00029,638,656
13Dec 5, 2024 05:1919,336277,190,64044,451,00042,559,00029,491,200
14Dec 5, 2024 05:1919,374286,479,37647,744,00039,440,00029,609,984
15Dec 5, 2024 05:1919,398289,802,95353,039,00034,254,00029,622,272
16Dec 5, 2024 05:1919,457298,121,65849,070,00038,486,00029,593,600
17Dec 5, 2024 05:1919,477291,970,00450,743,00036,904,00029,577,216
18Dec 5, 2024 05:1919,742290,672,81252,880,00035,958,00029,630,464