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 listJun 2, 2025 13:28KeefeKeefeScore: 12,068Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2025 13:2812,04583,239,97852,195,0002,007,0002,277,376
2Jun 2, 2025 13:2812,05683,232,96752,244,0002,009,0002,285,568
3Jun 2, 2025 13:2812,06580,344,61352,284,0002,010,0002,285,568
4Jun 2, 2025 13:2812,06888,583,95853,302,0001,005,0002,285,568
5Jun 2, 2025 13:2812,06876,513,56254,308,00002,285,568
6Jun 2, 2025 13:2812,07281,585,92353,317,0001,005,0002,285,568
7Jun 2, 2025 13:2812,07382,951,43152,315,0002,012,0002,519,040
8Jun 2, 2025 13:2812,10581,856,32753,465,0001,008,0002,285,568
9Jun 2, 2025 13:2812,10876,659,64853,479,0001,009,0002,285,568