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 listMay 8, 2023 06:16Yuriy LyfenkoYuriy LyfenkoScore: 12,350Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:165,309101,683,73523,889,31402,248,704
2May 8, 2023 06:165,31192,749,57023,899,11902,252,800
3May 8, 2023 06:165,31196,546,79323,901,36302,244,608
4May 8, 2023 06:1612,279249,380,57324,808,00030,446,00029,720,576
5May 8, 2023 06:1612,295243,308,32620,383,00034,943,00029,708,288
6May 8, 2023 06:1612,307240,320,52824,745,00030,636,00029,544,448
7May 8, 2023 06:1612,350251,528,43521,833,00033,742,00029,675,520
8May 8, 2023 06:1612,403241,636,09024,077,00031,738,00029,663,232
9May 8, 2023 06:1612,460254,364,05423,274,00032,795,00029,548,544
10May 8, 2023 06:1612,523257,074,89021,013,00035,340,00029,675,520
11May 8, 2023 06:1612,580247,716,96722,016,00034,596,00029,712,384
12May 8, 2023 06:1612,751250,470,92933,221,00024,160,00029,708,288