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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:233,92485,927,93417,659,54502,269,184
2Jun 12, 2023 21:233,92791,173,25117,672,60002,281,472
3Jun 12, 2023 21:233,96289,822,39117,830,52902,265,088
4Jun 12, 2023 21:234,25795,391,77419,157,27602,260,992
5Jun 12, 2023 21:234,25984,235,50519,163,51402,277,376
6Jun 12, 2023 21:234,27278,765,81919,225,33302,260,992
7Jun 12, 2023 21:2311,090236,277,88915,656,00034,248,00029,728,768
8Jun 12, 2023 21:2311,284241,129,32217,287,00033,493,00029,593,600
9Jun 12, 2023 21:2311,338242,019,47518,553,00032,467,00029,753,344
10Jun 12, 2023 21:2311,356242,341,76419,941,00031,159,00029,630,464
11Jun 12, 2023 21:2311,378242,649,13320,725,00030,478,00029,630,464
12Jun 12, 2023 21:2311,427239,362,29416,811,00034,611,00029,728,768
13Jun 12, 2023 21:2311,463237,637,46917,195,00034,390,00029,667,328
14Jun 12, 2023 21:2311,467246,569,23121,600,00030,000,00029,544,448
15Jun 12, 2023 21:2311,545239,838,82019,482,00032,470,00029,544,448