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 listDec 6, 2024 18:23E SequeiraE SequeiraScore: 24,024Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 18:2323,881302,425,88477,376,00030,090,00029,659,136
2Dec 6, 2024 18:2323,933299,672,54272,469,00035,228,00029,626,368
3Dec 6, 2024 18:2323,967311,061,80373,582,00034,271,00029,630,464
4Dec 6, 2024 18:2324,010295,253,33772,031,00036,015,00029,728,768
5Dec 6, 2024 18:2324,024295,490,03874,845,00033,264,00029,630,464
6Dec 6, 2024 18:2324,035298,589,64073,467,00034,692,00029,798,400
7Dec 6, 2024 18:2324,223303,609,80973,003,00036,001,00029,663,232
8Dec 6, 2024 18:2324,260300,614,03075,184,00033,987,00029,691,904
9Dec 6, 2024 18:2324,301298,342,45669,760,00039,593,00029,626,368