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 listJun 8, 2023 19:42Victor MuñozVictor MuñozScore: 17,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2023 19:4210,287100,166,19046,289,71102,244,608
2Jun 8, 2023 19:4210,290114,035,78046,306,95702,252,800
3Jun 8, 2023 19:4210,300105,410,17446,349,58402,240,512
4Jun 8, 2023 19:4217,489266,433,63041,181,00037,520,00029,544,448
5Jun 8, 2023 19:4217,507277,602,97446,648,00032,135,00029,577,216
6Jun 8, 2023 19:4217,524261,794,82648,365,00030,491,00029,712,384
7Jun 8, 2023 19:4217,556271,604,49847,402,00031,601,00029,765,632
8Jun 8, 2023 19:4217,642276,700,53248,940,00030,451,00029,708,288
9Jun 8, 2023 19:4217,651266,085,82146,419,00033,009,00029,712,384
10Jun 8, 2023 19:4217,671268,545,88454,596,00024,924,00029,548,544
11Jun 8, 2023 19:4217,720264,658,86744,982,00034,759,00029,732,864
12Jun 8, 2023 19:4217,760267,053,09149,681,00030,240,00029,659,136