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 listNov 24, 2021 02:21Vitaliy F.Vitaliy F.Score: 48,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2021 02:2139,179231,587,859176,307,41002,248,704
2Nov 24, 2021 02:2139,190232,829,303176,355,08602,252,800
3Nov 24, 2021 02:2139,192240,314,936176,365,57202,260,992
4Nov 24, 2021 02:2148,326418,420,016195,822,00021,643,00029,601,792
5Nov 24, 2021 02:2148,507420,078,756185,001,00033,280,00029,732,864
6Nov 24, 2021 02:2148,526420,416,738188,775,00029,591,00029,659,136
7Nov 24, 2021 02:2148,581417,100,033180,818,00037,798,00029,478,912
8Nov 24, 2021 02:2148,599415,967,748183,623,00035,074,00029,593,600
9Nov 24, 2021 02:2148,626421,779,537179,309,00039,508,00029,614,080
10Nov 24, 2021 02:2148,631420,515,573192,375,00026,464,00029,540,352
11Nov 24, 2021 02:2148,702418,029,233182,293,00036,868,00029,708,288
12Nov 24, 2021 02:2148,708426,859,079184,741,00034,443,00029,708,288