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:41Andrey TsvetkovAndrey TsvetkovScore: 26,164Success
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:4118,434154,175,29782,955,18302,236,416
2Oct 11, 2021 05:4118,463157,285,41183,082,60102,236,416
3Oct 11, 2021 05:4118,470137,476,78983,115,29102,228,224
4Oct 11, 2021 05:4125,942304,824,33382,522,00034,216,00029,736,960
5Oct 11, 2021 05:4126,085304,648,48182,267,00035,114,00029,573,120
6Oct 11, 2021 05:4126,159305,175,94688,023,00029,694,00029,560,832
7Oct 11, 2021 05:4126,164307,374,46677,556,00040,180,00029,794,304
8Oct 11, 2021 05:4126,216315,406,77387,426,00030,546,00029,638,656
9Oct 11, 2021 05:4126,231309,092,48781,644,00036,395,00029,736,960
10Oct 11, 2021 05:4126,247309,272,49388,319,00029,794,00029,638,656
11Oct 11, 2021 05:4126,297311,852,56884,671,00033,664,00029,761,536
12Oct 11, 2021 05:4126,559305,755,60284,486,00035,030,00029,708,288