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 listOct 11, 2021 23:16Vitaliy F.Vitaliy F.Score: 46,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 23:1637,372245,777,219168,172,95102,232,320
2Oct 11, 2021 23:1637,375239,730,543168,188,95802,240,512
3Oct 11, 2021 23:1637,384228,807,666168,227,91902,236,416
4Oct 11, 2021 23:1646,760411,281,742176,751,00033,667,00029,675,520
5Oct 11, 2021 23:1646,891411,611,206180,280,00030,729,00029,601,792
6Oct 11, 2021 23:1646,897403,771,983180,598,00030,437,00029,605,888
7Oct 11, 2021 23:1646,899408,130,034179,285,00031,759,00029,741,056
8Oct 11, 2021 23:1646,948405,798,181174,569,00036,699,00029,605,888
9Oct 11, 2021 23:1646,963410,594,401173,596,00037,738,00029,712,384
10Oct 11, 2021 23:1646,966406,815,803177,291,00034,055,00029,679,616
11Oct 11, 2021 23:1646,973411,756,314177,319,00034,061,00029,577,216
12Oct 11, 2021 23:1646,982412,745,365177,191,00034,230,00029,609,984