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 20:09gchebanovgchebanovScore: 15,399Success
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 20:094,58695,215,30820,634,96602,252,800
2Jul 18, 2023 20:094,59674,186,80920,683,59502,252,800
3Jul 18, 2023 20:094,65283,419,33820,933,90902,256,896
4Jul 18, 2023 20:0915,186253,899,40933,687,00034,649,00029,626,368
5Jul 18, 2023 20:0915,346260,434,81435,575,00033,482,00029,659,136
6Jul 18, 2023 20:0915,374257,580,10435,639,00033,543,00029,593,600
7Jul 18, 2023 20:0915,399259,318,04631,838,00037,457,00029,589,504
8Jul 18, 2023 20:0915,429256,343,77736,758,00032,674,00029,491,200
9Jul 18, 2023 20:0915,437261,675,52534,229,00035,236,00029,552,640
10Jul 18, 2023 20:0915,501260,453,35032,489,00037,267,00029,544,448
11Jul 18, 2023 20:0915,524257,926,90934,451,00035,408,00029,720,576
12Jul 18, 2023 20:0915,533255,645,03935,471,00034,428,00029,753,344