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 listJul 18, 2023 21:20gchebanovgchebanovScore: 15,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 21:204,61783,594,85520,778,61302,269,184
2Jul 18, 2023 21:204,63394,112,25720,848,34802,265,088
3Jul 18, 2023 21:204,63591,013,79120,859,00302,260,992
4Jul 18, 2023 21:2015,232258,072,47234,271,00034,271,00029,659,136
5Jul 18, 2023 21:2015,343254,849,46933,563,00035,481,00029,630,464
6Jul 18, 2023 21:2015,345259,906,19038,362,00030,690,00029,593,600
7Jul 18, 2023 21:2015,349256,992,49437,192,00031,878,00029,589,504
8Jul 18, 2023 21:2015,397253,504,21036,195,00033,093,00029,544,448
9Jul 18, 2023 21:2015,515257,696,08237,024,00032,793,00029,626,368
10Jul 18, 2023 21:2015,528261,248,62339,445,00030,429,00029,540,352
11Jul 18, 2023 21:2015,570256,166,18232,192,00037,873,00029,724,672
12Jul 18, 2023 21:2015,573255,901,93736,101,00033,977,00029,491,200