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:39Andrey TsvetkovAndrey TsvetkovScore: 28,007Success
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:3918,588143,852,67183,645,05902,228,224
2Oct 11, 2021 05:3918,595145,248,32983,679,59002,228,224
3Oct 11, 2021 05:3918,605146,117,05583,722,54302,232,320
4Oct 11, 2021 05:3927,361312,221,13294,022,00029,102,00029,761,536
5Oct 11, 2021 05:3927,388312,983,90084,189,00039,057,00029,560,832
6Oct 11, 2021 05:3928,001339,545,11881,358,00044,648,00029,700,096
7Oct 11, 2021 05:3928,007328,032,28395,269,00030,764,00029,605,888
8Oct 11, 2021 05:3928,078330,704,30191,628,00034,722,00029,671,424
9Oct 11, 2021 05:3928,154323,664,72989,082,00037,612,00029,642,752
10Oct 11, 2021 05:3928,161321,148,49389,634,00037,089,00029,704,192
11Oct 11, 2021 05:3928,221323,359,06692,645,00034,351,00029,659,136
12Oct 11, 2021 05:3928,245334,759,40291,904,00035,197,00029,741,056