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 listMay 10, 2023 02:42Yuriy LyfenkoYuriy LyfenkoScore: 10,307Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 02:423,034102,153,65913,654,57502,244,608
2May 10, 2023 02:423,050103,377,65613,722,98502,240,512
3May 10, 2023 02:423,05891,535,78613,761,80402,248,704
4May 10, 2023 02:4210,207238,161,20411,708,00034,224,00029,675,520
5May 10, 2023 02:4210,241240,668,50015,710,00030,373,00029,536,256
6May 10, 2023 02:4210,280234,297,63713,986,00032,276,00029,544,448
7May 10, 2023 02:4210,307236,995,37218,038,00028,345,00029,667,328
8May 10, 2023 02:4210,351234,569,38710,546,00036,035,00029,667,328
9May 10, 2023 02:4210,396233,811,13010,796,00035,987,00029,667,328
10May 10, 2023 02:4210,475239,708,92214,504,00032,634,00029,663,232
11May 10, 2023 02:4210,528238,090,47517,926,00029,450,00029,708,288
12May 10, 2023 02:4210,548240,243,91914,138,00033,327,00029,659,136