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 7, 2023 09:33Bernard TeoBernard TeoScore: 13,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 09:334,52690,217,59020,367,70002,273,280
2May 7, 2023 09:334,56891,188,10520,554,31202,256,896
3May 7, 2023 09:334,57280,492,84520,576,09202,256,896
4May 7, 2023 09:3313,409244,775,65426,591,00033,750,00029,687,808
5May 7, 2023 09:3313,501251,210,94930,377,00030,377,00029,675,520
6May 7, 2023 09:3313,569254,700,41331,030,00030,029,00029,687,808
7May 7, 2023 09:3313,581246,248,82627,162,00033,953,00029,523,968
8May 7, 2023 09:3313,701254,675,85728,593,00033,060,00029,720,576
9May 7, 2023 09:3314,074265,602,96725,803,00037,531,00029,691,904
10May 7, 2023 09:3314,170262,861,96827,195,00036,572,00029,687,808
11May 7, 2023 09:3314,175261,129,71827,642,00036,147,00029,675,520
12May 7, 2023 09:3314,184260,544,02227,659,00036,170,00029,560,832