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 00:42Yuriy LyfenkoYuriy LyfenkoScore: 12,297Success
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 00:425,51095,708,14024,793,15502,248,704
2May 10, 2023 00:425,51189,158,62324,798,55302,252,800
3May 10, 2023 00:425,51898,074,07324,831,06902,240,512
4May 10, 2023 00:4212,123238,956,37721,821,00032,732,00029,507,584
5May 10, 2023 00:4212,234241,219,50621,814,00033,240,00029,544,448
6May 10, 2023 00:4212,289244,479,30323,125,00032,174,00029,708,288
7May 10, 2023 00:4212,297247,576,84523,871,00031,466,00029,675,520
8May 10, 2023 00:4212,370240,903,16723,107,00032,560,00029,655,040
9May 10, 2023 00:4212,414245,319,49621,946,00033,917,00029,573,120
10May 10, 2023 00:4212,501240,812,93021,479,00034,775,00029,675,520
11May 10, 2023 00:4212,509248,887,99821,493,00034,799,00029,741,056
12May 10, 2023 00:4212,692255,972,01824,637,00032,476,00029,540,352