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 20, 2023 15:28gchebanovgchebanovScore: 12,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 15:284,741100,816,57521,332,73502,256,896
2Jul 20, 2023 15:284,74393,769,57421,344,38302,260,992
3Jul 20, 2023 15:284,75290,079,73621,384,88002,248,704
4Jul 20, 2023 15:2812,285240,268,43320,861,00034,421,00029,626,368
5Jul 20, 2023 15:2812,314243,110,14822,165,00033,248,00029,757,440
6Jul 20, 2023 15:2812,316240,698,16425,301,00030,120,00029,736,960
7Jul 20, 2023 15:2812,351244,061,89823,514,00032,064,00029,683,712
8Jul 20, 2023 15:2812,364240,077,88123,094,00032,542,00029,540,352
9Jul 20, 2023 15:2812,371247,096,04420,156,00035,513,00029,626,368
10Jul 20, 2023 15:2812,398251,378,58519,526,00036,263,00029,675,520
11Jul 20, 2023 15:2812,493244,542,72424,093,00032,125,00029,528,064
12Jul 20, 2023 15:2812,521244,864,58722,956,00033,390,00029,528,064