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 16:13gchebanovgchebanovScore: 16,338Success
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 16:139,116102,777,80941,022,05002,260,992
2Jul 18, 2023 16:139,12397,464,45341,051,74902,265,088
3Jul 18, 2023 16:139,131114,650,54741,089,35502,260,992
4Jul 18, 2023 16:1316,131260,571,74837,251,00035,340,00029,536,256
5Jul 18, 2023 16:1316,218259,908,53640,087,00032,892,00029,687,808
6Jul 18, 2023 16:1316,320264,555,12540,340,00033,099,00029,728,768
7Jul 18, 2023 16:1316,338263,163,60744,112,00029,408,00029,523,968
8Jul 18, 2023 16:1316,372259,197,18540,468,00033,204,00029,626,368
9Jul 18, 2023 16:1316,374258,873,21140,475,00033,210,00029,626,368
10Jul 18, 2023 16:1316,389263,980,88539,948,00033,802,00029,540,352
11Jul 18, 2023 16:1316,404270,361,19243,619,00030,198,00029,634,560
12Jul 18, 2023 16:1316,581261,740,55941,093,00033,523,00029,626,368