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 15, 2021 19:13Yuriy LyfenkoYuriy LyfenkoScore: 13,546Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:136,33276,395,57328,492,70602,248,704
2Oct 15, 2021 19:136,33285,002,96428,495,37802,256,896
3Oct 15, 2021 19:136,33483,456,93828,502,51302,269,184
4Oct 15, 2021 19:1313,211242,894,68024,151,00035,298,00029,708,288
5Oct 15, 2021 19:1313,283252,297,02228,780,00030,993,00029,544,448
6Oct 15, 2021 19:1313,329249,010,31430,578,00029,402,00029,708,288
7Oct 15, 2021 19:1313,546248,530,86027,896,00033,062,00029,659,136
8Oct 15, 2021 19:1313,556249,433,29427,825,00033,176,00029,712,384
9Oct 15, 2021 19:1313,566251,648,54026,453,00034,592,00029,646,848
10Oct 15, 2021 19:1313,587253,007,93426,060,00035,081,00029,736,960
11Oct 15, 2021 19:1313,589253,134,72227,985,00033,167,00029,671,424
12Oct 15, 2021 19:1313,640247,934,89129,593,00031,785,00029,663,232