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 listApr 14, 2026 07:00Yuriy LyfenkoYuriy LyfenkoScore: 3,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 07:002,983642,210,89012,392,0001,032,0002,265,088
2Apr 14, 2026 06:582,997641,635,76512,451,0001,037,0002,523,136
3Apr 14, 2026 07:002,998642,298,20113,492,00002,523,136
4Apr 14, 2026 06:502,999633,119,59012,456,0001,038,0002,514,944
5Apr 14, 2026 06:583,001642,544,55913,506,00002,514,944
6Apr 14, 2026 06:503,006639,631,55612,485,0001,040,0002,523,136
7Apr 14, 2026 06:503,009640,415,35112,500,0001,041,0002,523,136
8Apr 14, 2026 07:003,009639,765,74512,500,0001,041,0002,523,136
9Apr 14, 2026 07:003,013642,161,62212,516,0001,043,0002,514,944
10Apr 14, 2026 07:003,014640,962,80812,519,0001,043,0002,514,944
11Apr 14, 2026 07:003,018645,609,08212,535,0001,044,0002,514,944
12Apr 14, 2026 06:583,019640,629,85112,541,0001,045,0002,514,944
13Apr 14, 2026 07:003,020643,656,97513,591,00002,527,232
14Apr 14, 2026 07:003,023641,039,30013,605,00002,523,136
15Apr 14, 2026 07:003,025646,890,83812,642,000972,0002,514,944
16Apr 14, 2026 07:003,028643,024,11612,576,0001,048,0002,514,944
17Apr 14, 2026 07:003,028644,741,11012,580,0001,048,0002,383,872
18Apr 14, 2026 07:003,060645,553,02812,788,000983,0002,514,944