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 21:47gchebanovgchebanovScore: 15,553Success
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 21:478,106115,668,21436,476,75502,269,184
2Jul 18, 2023 21:478,138109,898,87136,620,92402,273,280
3Jul 18, 2023 21:478,15297,913,61936,684,21902,256,896
4Jul 18, 2023 21:4715,354251,701,23037,124,00031,968,00029,659,136
5Jul 18, 2023 21:4715,520255,618,01533,524,00036,318,00029,626,368
6Jul 18, 2023 21:4715,536254,628,25637,565,00032,347,00029,691,904
7Jul 18, 2023 21:4715,553256,234,80935,501,00034,487,00029,491,200
8Jul 18, 2023 21:4715,603256,164,19740,957,00029,255,00029,544,448
9Jul 18, 2023 21:4715,631260,906,42634,675,00035,665,00029,659,136
10Jul 18, 2023 21:4715,652263,283,75233,314,00037,121,00029,736,960
11Jul 18, 2023 21:4715,823258,053,53337,760,00033,444,00029,753,344
12Jul 18, 2023 21:4715,869258,626,19639,672,00031,738,00029,659,136