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:16Yuriy LyfenkoYuriy LyfenkoScore: 10,496Success
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:163,25872,177,48614,659,20802,248,704
2May 10, 2023 01:163,26382,120,13014,681,49602,248,704
3May 10, 2023 01:163,26779,006,06114,702,36702,244,608
4May 10, 2023 01:1610,441237,076,96312,181,00034,803,00029,675,520
5May 10, 2023 01:1610,448236,502,07416,400,00030,614,00029,712,384
6May 10, 2023 01:1610,474229,557,00814,997,00032,137,00029,777,920
7May 10, 2023 01:1610,496237,660,57414,459,00032,775,00029,544,448
8May 10, 2023 01:1610,520240,366,33212,911,00034,431,00029,712,384
9May 10, 2023 01:1610,633243,109,50419,937,00027,911,00029,736,960
10May 10, 2023 01:1610,704234,607,48614,167,00034,001,00029,679,616
11May 10, 2023 01:1610,767240,779,06416,150,00032,301,00029,663,232
12May 10, 2023 01:1610,882238,444,41715,944,00033,027,00029,708,288