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 listAug 11, 2023 03:21PavelPavelScore: 103,035Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 03:2194,539481,207,671425,427,42102,203,648
2Aug 11, 2023 03:2194,563491,048,259425,531,98802,195,456
3Aug 11, 2023 03:2194,670482,268,036426,013,54802,207,744
4Aug 11, 2023 03:21102,936650,395,286425,442,00037,772,00029,655,040
5Aug 11, 2023 03:21103,027646,585,718422,192,00041,430,00029,667,328
6Aug 11, 2023 03:21103,034655,855,754425,846,00037,808,00029,507,584
7Aug 11, 2023 03:21103,035645,537,489432,480,00031,178,00029,794,304
8Aug 11, 2023 03:21103,041648,688,358428,708,00034,976,00029,614,080
9Aug 11, 2023 03:21103,044649,442,834437,202,00026,497,00029,515,776
10Aug 11, 2023 03:21103,056651,481,413429,697,00034,055,00029,548,544
11Aug 11, 2023 03:21103,103655,773,900439,437,00024,526,00029,745,152
12Aug 11, 2023 03:21103,450654,225,347435,099,00030,426,00029,487,104