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 31, 2023 21:01Victor MuñozVictor MuñozScore: 10,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2023 21:013,35678,869,12615,101,74502,224,128
2Dec 31, 2023 21:013,37055,797,98115,164,05302,215,936
3Dec 31, 2023 21:013,37972,845,45315,205,46602,220,032
4Dec 31, 2023 21:0110,590233,219,79715,163,00032,493,00029,585,408
5Dec 31, 2023 21:0110,618232,743,74315,203,00032,579,00029,515,776
6Dec 31, 2023 21:0110,629231,448,29613,951,00033,881,00029,605,888
7Dec 31, 2023 21:0110,651234,628,99015,250,00032,678,00029,745,152
8Dec 31, 2023 21:0110,657234,459,66113,988,00033,970,00029,487,104
9Dec 31, 2023 21:0110,672232,994,50414,304,00033,718,00029,487,104
10Dec 31, 2023 21:0110,690240,249,58812,471,00035,632,00029,519,872
11Dec 31, 2023 21:0110,703240,502,33015,324,00032,838,00029,487,104
12Dec 31, 2023 21:0110,721240,081,70514,371,00033,875,00029,564,928