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 listOct 11, 2021 05:35Andrey TsvetkovAndrey TsvetkovScore: 25,771Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 05:3518,082142,613,17481,370,30502,228,224
2Oct 11, 2021 05:3518,092138,207,78481,412,59902,224,128
3Oct 11, 2021 05:3518,093139,337,60181,419,68402,240,512
4Oct 11, 2021 05:3525,645298,355,34685,759,00029,645,00029,556,736
5Oct 11, 2021 05:3525,698307,296,56687,540,00028,099,00029,560,832
6Oct 11, 2021 05:3525,766295,718,76483,111,00032,834,00029,638,656
7Oct 11, 2021 05:3525,771298,793,10784,626,00031,343,00029,601,792
8Oct 11, 2021 05:3525,780307,863,04088,082,00027,928,00029,642,752
9Oct 11, 2021 05:3525,782299,316,93681,416,00034,601,00029,642,752
10Oct 11, 2021 05:3525,805299,021,40278,382,00037,739,00029,638,656
11Oct 11, 2021 05:3525,881318,193,89284,702,00031,763,00029,671,424
12Oct 11, 2021 05:3525,964320,458,09886,035,00030,802,00029,638,656