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 7, 2024 15:26E SequeiraE SequeiraScore: 23,742Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 18:3123,429294,919,83072,990,00032,440,00029,659,136
2Dec 6, 2024 18:3123,656294,366,49077,421,00029,032,00029,626,368
3Dec 6, 2024 18:3123,680301,385,50274,797,00031,763,00029,552,640
4Dec 6, 2024 18:3123,718297,306,45875,341,00031,392,00029,659,136
5Dec 6, 2024 18:3123,720292,381,95874,615,00032,126,00029,626,368
6Dec 6, 2024 18:3123,742295,127,00578,493,00028,345,00029,626,368
7Dec 7, 2024 15:2623,742294,760,46673,578,00033,261,00029,556,736
8Dec 6, 2024 18:3123,802306,543,52872,755,00034,356,00029,548,544
9Dec 7, 2024 15:2623,842300,703,55272,521,00034,770,00029,630,464
10Dec 7, 2024 15:2623,887297,427,97375,452,00032,041,00029,552,640
11Dec 6, 2024 18:3124,065304,405,81674,972,00033,320,00029,659,136
12Dec 6, 2024 18:3124,222308,379,50977,702,00031,296,00029,532,160