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:44Yuriy LyfenkoYuriy LyfenkoScore: 10,375Success
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:443,01391,140,88013,560,55202,248,704
2May 10, 2023 02:443,02361,657,94113,605,70902,248,704
3May 10, 2023 02:443,04858,391,59413,716,12702,244,608
4May 10, 2023 02:4410,274237,154,52612,021,00034,214,00029,708,288
5May 10, 2023 02:4410,334231,582,52212,682,00033,820,00029,663,232
6May 10, 2023 02:4410,340231,897,26214,067,00032,463,00029,708,288
7May 10, 2023 02:4410,375237,500,82411,671,00035,015,00029,667,328
8May 10, 2023 02:4410,458244,111,15915,321,00031,738,00029,720,576
9May 10, 2023 02:4410,467236,701,79615,308,00031,794,00029,736,960
10May 10, 2023 02:4410,480238,644,22916,570,00030,591,00029,671,424
11May 10, 2023 02:4410,508239,014,32416,550,00030,737,00029,659,136
12May 10, 2023 02:4410,640246,938,73015,235,00032,647,00029,675,520