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 10, 2023 05:03Yuriy LyfenkoYuriy LyfenkoScore: 10,391Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 05:033,03764,806,10413,665,44602,244,608
2May 10, 2023 05:033,03862,257,28713,673,11102,244,608
3May 10, 2023 05:033,04365,793,12813,694,09802,244,608
4May 10, 2023 05:0310,206237,465,33414,131,00031,796,00029,474,816
5May 10, 2023 05:0310,241239,785,29516,543,00029,541,00029,544,448
6May 10, 2023 05:0310,366237,282,37312,634,00034,015,00029,675,520
7May 10, 2023 05:0310,391237,303,69412,198,00034,563,00029,540,352
8May 10, 2023 05:0310,401242,454,03111,949,00034,854,00029,544,448
9May 10, 2023 05:0310,422249,411,71614,590,00032,308,00029,675,520
10May 10, 2023 05:0310,426241,373,48210,236,00036,681,00029,663,232
11May 10, 2023 05:0310,429241,458,68213,262,00033,667,00029,736,960
12May 10, 2023 05:0310,573236,487,80013,446,00034,133,00029,741,056