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:33Andrey TsvetkovAndrey TsvetkovScore: 25,925Success
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:3318,222142,098,70482,001,07902,236,416
2Oct 11, 2021 05:3318,230153,467,64282,035,14602,232,320
3Oct 11, 2021 05:3318,254138,991,88582,142,09002,224,128
4Oct 11, 2021 05:3325,680305,182,75378,004,00037,557,00028,962,816
5Oct 11, 2021 05:3325,789308,263,03184,687,00031,365,00029,704,192
6Oct 11, 2021 05:3325,802307,072,01184,727,00031,380,00029,638,656
7Oct 11, 2021 05:3325,925308,122,26384,373,00032,290,00029,634,560
8Oct 11, 2021 05:3325,970304,975,73483,037,00033,829,00029,569,024
9Oct 11, 2021 05:3325,982309,567,15587,689,00029,229,00029,569,024
10Oct 11, 2021 05:3325,998305,393,22379,633,00037,358,00029,773,824
11Oct 11, 2021 05:3326,017303,804,90478,366,00038,711,00029,564,928
12Oct 11, 2021 05:3326,295311,647,27693,298,00025,031,00029,564,928