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 01:12Yuriy LyfenkoYuriy LyfenkoScore: 12,218Success
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 01:123,113577,281,64114,007,09402,244,608
2May 10, 2023 01:123,141583,049,15714,135,61702,252,800
3May 10, 2023 01:123,152572,194,60714,183,37902,244,608
4May 10, 2023 01:1212,062752,047,00219,261,00035,020,00029,536,256
5May 10, 2023 01:1212,102747,197,36412,567,00041,890,00029,540,352
6May 10, 2023 01:1212,104741,262,47614,855,00039,613,00029,536,256
7May 10, 2023 01:1212,218748,762,41419,635,00035,344,00029,536,256
8May 10, 2023 01:1212,510745,339,56822,758,00033,538,00029,536,256
9May 10, 2023 01:1212,634755,388,57424,550,00032,303,00029,536,256
10May 10, 2023 01:1212,667754,854,92028,501,00028,501,00029,536,256
11May 10, 2023 01:1212,761769,881,53322,012,00035,411,00029,536,256
12May 10, 2023 01:1212,888756,195,68917,773,00040,224,00029,532,160