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 22:14Yuriy LyfenkoYuriy LyfenkoScore: 14,772Success
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 22:147,806103,819,30935,128,81102,228,224
2May 8, 2023 22:147,813108,453,57735,159,08102,228,224
3May 8, 2023 22:147,81697,868,07135,172,60302,252,800
4May 8, 2023 22:1414,712259,461,48734,631,00031,575,00029,724,672
5May 8, 2023 22:1414,750251,979,13634,718,00031,655,00029,528,064
6May 8, 2023 22:1414,758246,557,71133,732,00032,678,00029,528,064
7May 8, 2023 22:1414,772256,500,72439,885,00026,590,00029,659,136
8May 8, 2023 22:1414,801256,259,70031,855,00034,751,00029,528,064
9May 8, 2023 22:1414,807262,621,48831,867,00034,764,00029,655,040
10May 8, 2023 22:1414,902257,367,47834,577,00032,481,00029,523,968
11May 8, 2023 22:1414,965263,162,94931,691,00035,652,00029,650,944
12May 8, 2023 22:1414,978257,845,41936,463,00030,939,00029,650,944