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 11, 2023 23:47Victor MuñozVictor MuñozScore: 11,487Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2023 23:474,30392,685,51019,361,35502,240,512
2Jun 11, 2023 23:474,30367,987,91019,363,29502,244,608
3Jun 11, 2023 23:474,31197,702,99819,401,06702,248,704
4Jun 11, 2023 23:4711,34678,431,42922,024,00029,032,00029,659,136
5Jun 11, 2023 23:4711,40480,814,01721,130,00030,186,00029,663,232
6Jun 11, 2023 23:4711,42485,529,76922,175,00029,231,00029,659,136
7Jun 11, 2023 23:4711,48784,600,76521,285,00030,408,00029,671,424
8Jun 11, 2023 23:4711,48979,990,31625,344,00026,358,00029,589,504
9Jun 11, 2023 23:4711,52981,575,07419,954,00031,926,00029,523,968
10Jun 11, 2023 23:4711,53482,471,87420,960,00030,942,00029,650,944
11Jun 11, 2023 23:4711,54879,470,97522,985,00028,981,00029,696,000
12Jun 11, 2023 23:4711,62278,474,39124,139,00028,162,00029,487,104