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 00:47Yuriy LyfenkoYuriy LyfenkoScore: 17,328Success
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 00:4710,406115,344,65946,827,28102,248,704
2Oct 11, 2021 00:4710,413104,080,24846,857,76102,244,608
3Oct 11, 2021 00:4710,484108,168,32547,179,05502,252,800
4Oct 11, 2021 00:4717,269263,324,15445,415,00032,295,00029,671,424
5Oct 11, 2021 00:4717,278269,731,68244,857,00032,895,00029,544,448
6Oct 11, 2021 00:4717,300269,070,90650,048,00027,804,00029,474,816
7Oct 11, 2021 00:4717,328267,355,75847,651,00030,323,00029,638,656
8Oct 11, 2021 00:4717,404266,462,32144,055,00034,265,00029,708,288
9Oct 11, 2021 00:4717,443270,995,00344,853,00033,640,00029,741,056
10Oct 11, 2021 00:4717,454273,858,23444,883,00033,662,00029,667,328
11Oct 11, 2021 00:4717,502272,203,76445,004,00033,753,00029,708,288
12Oct 11, 2021 00:4717,617266,011,79240,104,00039,171,00029,671,424