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:50gchebanovgchebanovScore: 15,428Success
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:504,58281,575,41320,617,49002,244,608
2Jul 18, 2023 21:504,59071,035,07320,654,12302,260,992
3Jul 18, 2023 21:504,68086,275,06621,060,34902,256,896
4Jul 18, 2023 21:5015,366264,715,74833,585,00035,560,00029,622,272
5Jul 18, 2023 21:5015,389254,095,21936,175,00033,074,00029,745,152
6Jul 18, 2023 21:5015,399254,401,95535,667,00033,629,00029,548,544
7Jul 18, 2023 21:5015,428259,577,50633,721,00035,705,00029,593,600
8Jul 18, 2023 21:5015,432259,017,23833,784,00035,661,00029,700,096
9Jul 18, 2023 21:5015,475260,333,11638,082,00031,554,00029,626,368
10Jul 18, 2023 21:5015,612261,176,80537,256,00032,998,00029,753,344
11Jul 18, 2023 21:5015,620258,375,15237,342,00032,949,00029,548,544
12Jul 18, 2023 21:5015,628255,446,72642,196,00028,130,00029,552,640