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 22:05Victor MuñozVictor MuñozScore: 10,898Success
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 22:053,51174,429,80715,800,74602,252,800
2Jun 12, 2023 22:053,52277,055,35715,848,31402,244,608
3Jun 12, 2023 22:053,52678,345,99415,867,30202,256,896
4Jun 12, 2023 22:0510,808237,066,05215,199,00033,439,00029,650,944
5Jun 12, 2023 22:0510,820240,594,07215,216,00033,476,00029,671,424
6Jun 12, 2023 22:0510,851233,447,37216,646,00032,184,00029,507,584
7Jun 12, 2023 22:0510,898248,899,53414,146,00034,895,00029,675,520
8Jun 12, 2023 22:0510,910240,173,75616,365,00032,731,00029,675,520
9Jun 12, 2023 22:0510,975237,146,13723,241,00026,146,00029,655,040
10Jun 12, 2023 22:0511,012235,486,98614,024,00035,528,00029,663,232
11Jun 12, 2023 22:0511,017234,072,68615,176,00034,399,00029,675,520
12Jun 12, 2023 22:0511,037241,191,41816,555,00033,111,00029,540,352